home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-11-30 | 27.2 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 69 b3 03 2f 2f 3d 3d 3d |........|i..//===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 41 |========|==..// A|
|00000060| 73 73 61 75 6c 74 2e 0d | 0a 2f 2f 3d 3d 3d 3d 3d |ssault..|.//=====|
|00000070| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 0d 0a 63 6c 61 73 73 20 |========|..class |
|000000c0| 41 73 73 61 75 6c 74 20 | 65 78 74 65 6e 64 73 20 |Assault |extends |
|000000d0| 54 65 61 6d 47 61 6d 65 | 50 6c 75 73 0d 0a 09 63 |TeamGame|Plus...c|
|000000e0| 6f 6e 66 69 67 3b 0d 0a | 0d 0a 76 61 72 20 54 65 |onfig;..|..var Te|
|000000f0| 61 6d 49 6e 66 6f 20 44 | 65 66 65 6e 64 65 72 2c |amInfo D|efender,|
|00000100| 20 41 74 74 61 63 6b 65 | 72 3b 0d 0a 76 61 72 28 | Attacke|r;..var(|
|00000110| 29 20 63 6f 6e 66 69 67 | 20 69 6e 74 20 44 65 66 |) config| int Def|
|00000120| 65 6e 73 65 73 3b 0d 0a | 76 61 72 20 46 6f 72 74 |enses;..|var Fort|
|00000130| 53 74 61 6e 64 61 72 64 | 20 46 6f 72 74 5b 31 36 |Standard| Fort[16|
|00000140| 5d 2c 20 42 65 73 74 46 | 6f 72 74 3b 0d 0a 76 61 |], BestF|ort;..va|
|00000150| 72 20 6c 6f 63 61 6c 69 | 7a 65 64 20 73 74 72 69 |r locali|zed stri|
|00000160| 6e 67 20 41 74 74 61 63 | 6b 4d 65 73 73 61 67 65 |ng Attac|kMessage|
|00000170| 2c 20 44 65 66 65 6e 64 | 4d 65 73 73 61 67 65 2c |, Defend|Message,|
|00000180| 20 54 69 65 4d 65 73 73 | 61 67 65 2c 20 57 69 6e | TieMess|age, Win|
|00000190| 4d 65 73 73 61 67 65 2c | 20 4f 62 6a 65 63 74 69 |Message,| Objecti|
|000001a0| 76 65 73 4d 65 73 73 61 | 67 65 3b 0d 0a 76 61 72 |vesMessa|ge;..var|
|000001b0| 20 69 6e 74 20 44 65 73 | 74 72 6f 79 65 72 3b 0d | int Des|troyer;.|
|000001c0| 0a 76 61 72 20 69 6e 74 | 20 6e 75 6d 46 6f 72 74 |.var int| numFort|
|000001d0| 73 3b 0d 0a 76 61 72 20 | 66 6c 6f 61 74 20 4c 61 |s;..var |float La|
|000001e0| 73 74 49 6e 63 6f 6d 69 | 6e 67 3b 0d 0a 76 61 72 |stIncomi|ng;..var|
|000001f0| 20 53 70 65 63 74 61 74 | 6f 72 43 61 6d 20 45 6e | Spectat|orCam En|
|00000200| 64 43 61 6d 3b 0d 0a 0d | 0a 76 61 72 20 63 6f 6e |dCam;...|.var con|
|00000210| 66 69 67 20 66 6c 6f 61 | 74 20 53 61 76 65 64 54 |fig floa|t SavedT|
|00000220| 69 6d 65 3b 0d 0a 76 61 | 72 20 63 6f 6e 66 69 67 |ime;..va|r config|
|00000230| 20 69 6e 74 20 4e 75 6d | 44 65 66 65 6e 73 65 73 | int Num|Defenses|
|00000240| 3b 0d 0a 76 61 72 20 63 | 6f 6e 66 69 67 20 69 6e |;..var c|onfig in|
|00000250| 74 20 43 75 72 72 65 6e | 74 44 65 66 65 6e 64 65 |t Curren|tDefende|
|00000260| 72 3b 0d 0a 76 61 72 20 | 63 6f 6e 66 69 67 20 62 |r;..var |config b|
|00000270| 6f 6f 6c 20 62 44 65 66 | 65 6e 73 65 53 65 74 3b |ool bDef|enseSet;|
|00000280| 0d 0a 76 61 72 20 63 6f | 6e 66 69 67 20 62 6f 6f |..var co|nfig boo|
|00000290| 6c 20 62 54 69 65 50 61 | 72 74 4f 6e 65 3b 0d 0a |l bTiePa|rtOne;..|
|000002a0| 76 61 72 20 63 6f 6e 66 | 69 67 20 73 74 72 69 6e |var conf|ig strin|
|000002b0| 67 20 47 61 6d 65 43 6f | 64 65 3b 0d 0a 76 61 72 |g GameCo|de;..var|
|000002c0| 20 63 6f 6e 66 69 67 20 | 69 6e 74 20 50 61 72 74 | config |int Part|
|000002d0| 3b 0d 0a 76 61 72 20 62 | 6f 6f 6c 09 62 41 73 73 |;..var b|ool.bAss|
|000002e0| 61 75 6c 74 57 6f 6e 3b | 0d 0a 76 61 72 20 62 6f |aultWon;|..var bo|
|000002f0| 6f 6c 09 62 46 6f 72 74 | 44 6f 77 6e 3b 0d 0a 0d |ol.bFort|Down;...|
|00000300| 0a 76 61 72 20 6c 6f 63 | 61 6c 69 7a 65 64 20 73 |.var loc|alized s|
|00000310| 74 72 69 6e 67 20 44 65 | 66 65 6e 64 65 72 53 75 |tring De|fenderSu|
|00000320| 63 63 65 73 73 3b 0d 0a | 76 61 72 20 50 61 77 6e |ccess;..|var Pawn|
|00000330| 20 4c 65 61 64 65 72 5b | 34 5d 3b 09 09 2f 2f 20 | Leader[|4];..// |
|00000340| 63 75 72 72 65 6e 74 20 | 6c 65 61 64 65 72 20 6f |current |leader o|
|00000350| 66 20 65 61 63 68 20 74 | 65 61 6d 20 28 75 73 65 |f each t|eam (use|
|00000360| 64 20 62 79 20 62 6f 74 | 73 29 0d 0a 09 0d 0a 66 |d by bot|s).....f|
|00000370| 75 6e 63 74 69 6f 6e 20 | 50 6f 73 74 42 65 67 69 |unction |PostBegi|
|00000380| 6e 50 6c 61 79 28 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |nPlay().|.{...loc|
|00000390| 61 6c 20 69 6e 74 20 69 | 2c 20 4e 75 6d 3b 0d 0a |al int i|, Num;..|
|000003a0| 09 6c 6f 63 61 6c 20 46 | 6f 72 74 53 74 61 6e 64 |.local F|ortStand|
|000003b0| 61 72 64 20 46 3b 0d 0a | 0d 0a 09 53 75 70 65 72 |ard F;..|...Super|
|000003c0| 2e 50 6f 73 74 42 65 67 | 69 6e 50 6c 61 79 28 29 |.PostBeg|inPlay()|
|000003d0| 3b 0d 0a 0d 0a 09 6e 75 | 6d 46 6f 72 74 73 20 3d |;.....nu|mForts =|
|000003e0| 20 30 3b 0d 0a 09 46 6f | 72 45 61 63 68 20 41 6c | 0;...Fo|rEach Al|
|000003f0| 6c 41 63 74 6f 72 73 28 | 63 6c 61 73 73 27 46 6f |lActors(|class'Fo|
|00000400| 72 74 53 74 61 6e 64 61 | 72 64 27 2c 20 46 29 0d |rtStanda|rd', F).|
|00000410| 0a 09 7b 0d 0a 09 09 46 | 6f 72 74 5b 6e 75 6d 46 |..{....F|ort[numF|
|00000420| 6f 72 74 73 5d 20 3d 20 | 46 3b 0d 0a 09 09 6e 75 |orts] = |F;....nu|
|00000430| 6d 46 6f 72 74 73 2b 2b | 3b 0d 0a 09 7d 0d 0a 0d |mForts++|;...}...|
|00000440| 0a 09 2f 2f 72 61 6e 64 | 6f 6d 69 7a 65 20 66 6f |..//rand|omize fo|
|00000450| 72 74 20 6f 72 64 65 72 | 20 28 73 6f 20 41 49 20 |rt order| (so AI |
|00000460| 64 6f 65 73 6e 27 74 20 | 61 6c 77 61 79 73 20 61 |doesn't |always a|
|00000470| 74 74 61 63 6b 2f 64 65 | 66 65 6e 64 20 69 6e 20 |ttack/de|fend in |
|00000480| 73 61 6d 65 20 6f 72 64 | 65 72 29 0d 0a 09 66 6f |same ord|er)...fo|
|00000490| 72 20 28 20 69 3d 30 3b | 20 69 3c 6e 75 6d 46 6f |r ( i=0;| i<numFo|
|000004a0| 72 74 73 3b 20 69 2b 2b | 20 29 0d 0a 09 09 69 66 |rts; i++| )....if|
|000004b0| 20 28 20 46 52 61 6e 64 | 28 29 20 3c 20 30 2e 35 | ( FRand|() < 0.5|
|000004c0| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 46 20 3d 20 | )....{.|....F = |
|000004d0| 46 6f 72 74 5b 6e 75 6d | 46 6f 72 74 73 2d 69 2d |Fort[num|Forts-i-|
|000004e0| 31 5d 3b 0d 0a 09 09 09 | 46 6f 72 74 5b 6e 75 6d |1];.....|Fort[num|
|000004f0| 46 6f 72 74 73 2d 69 2d | 31 5d 3d 20 46 6f 72 74 |Forts-i-|1]= Fort|
|00000500| 5b 69 5d 3b 0d 0a 09 09 | 09 46 6f 72 74 5b 69 5d |[i];....|.Fort[i]|
|00000510| 20 3d 20 46 3b 0d 0a 09 | 09 7d 09 09 09 0d 0a 0d | = F;...|.}......|
|00000520| 0a 09 69 66 20 28 47 61 | 6d 65 43 6f 64 65 20 3d |..if (Ga|meCode =|
|00000530| 3d 20 22 22 29 0d 0a 09 | 7b 0d 0a 09 09 77 68 69 |= "")...|{....whi|
|00000540| 6c 65 20 28 69 3c 38 29 | 20 0d 0a 09 09 7b 0d 0a |le (i<8)| ....{..|
|00000550| 09 09 09 4e 75 6d 20 3d | 20 52 61 6e 64 28 31 32 |...Num =| Rand(12|
|00000560| 33 29 3b 0d 0a 09 09 09 | 69 66 20 28 20 28 28 4e |3);.....|if ( ((N|
|00000570| 75 6d 20 3e 3d 20 34 38 | 29 20 26 26 20 28 4e 75 |um >= 48|) && (Nu|
|00000580| 6d 20 3c 3d 20 35 37 29 | 29 20 7c 7c 20 0d 0a 09 |m <= 57)|) || ...|
|00000590| 09 09 09 20 28 28 4e 75 | 6d 20 3e 3d 20 36 35 29 |... ((Nu|m >= 65)|
|000005a0| 20 26 26 20 28 4e 75 6d | 20 3c 3d 20 39 31 29 29 | && (Num| <= 91))|
|000005b0| 20 7c 7c 0d 0a 09 09 09 | 09 28 28 4e 75 6d 20 3e | ||.....|.((Num >|
|000005c0| 3d 20 39 37 29 20 26 26 | 20 28 4e 75 6d 20 3c 3d |= 97) &&| (Num <=|
|000005d0| 20 31 32 33 29 29 20 29 | 20 0d 0a 09 09 09 7b 0d | 123)) )| .....{.|
|000005e0| 0a 09 09 09 09 47 61 6d | 65 43 6f 64 65 20 3d 20 |.....Gam|eCode = |
|000005f0| 47 61 6d 65 43 6f 64 65 | 24 43 68 72 28 4e 75 6d |GameCode|$Chr(Num|
|00000600| 29 3b 0d 0a 09 09 09 09 | 69 2b 2b 3b 0d 0a 09 09 |);......|i++;....|
|00000610| 09 7d 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 09 69 66 |.}....}.|..}...if|
|00000620| 20 28 57 6f 72 6c 64 4c | 6f 67 20 21 3d 20 4e 6f | (WorldL|og != No|
|00000630| 6e 65 29 0d 0a 09 7b 0d | 0a 09 09 57 6f 72 6c 64 |ne)...{.|...World|
|00000640| 4c 6f 67 2e 4c 6f 67 53 | 70 65 63 69 61 6c 45 76 |Log.LogS|pecialEv|
|00000650| 65 6e 74 28 22 61 73 73 | 61 75 6c 74 5f 74 69 6d |ent("ass|ault_tim|
|00000660| 65 6c 69 6d 69 74 22 2c | 20 54 69 6d 65 4c 69 6d |elimit",| TimeLim|
|00000670| 69 74 29 3b 0d 0a 09 09 | 57 6f 72 6c 64 4c 6f 67 |it);....|WorldLog|
|00000680| 2e 4c 6f 67 53 70 65 63 | 69 61 6c 45 76 65 6e 74 |.LogSpec|ialEvent|
|00000690| 28 22 61 73 73 61 75 6c | 74 5f 67 61 6d 65 63 6f |("assaul|t_gameco|
|000006a0| 64 65 22 2c 20 47 61 6d | 65 43 6f 64 65 2c 20 50 |de", Gam|eCode, P|
|000006b0| 61 72 74 29 3b 0d 0a 09 | 7d 0d 0a 09 69 66 20 28 |art);...|}...if (|
|000006c0| 4c 6f 63 61 6c 4c 6f 67 | 20 21 3d 20 4e 6f 6e 65 |LocalLog| != None|
|000006d0| 29 0d 0a 09 7b 0d 0a 09 | 09 4c 6f 63 61 6c 4c 6f |)...{...|.LocalLo|
|000006e0| 67 2e 4c 6f 67 53 70 65 | 63 69 61 6c 45 76 65 6e |g.LogSpe|cialEven|
|000006f0| 74 28 22 61 73 73 61 75 | 6c 74 5f 74 69 6d 65 6c |t("assau|lt_timel|
|00000700| 69 6d 69 74 22 2c 20 54 | 69 6d 65 4c 69 6d 69 74 |imit", T|imeLimit|
|00000710| 29 3b 0d 0a 09 09 4c 6f | 63 61 6c 4c 6f 67 2e 4c |);....Lo|calLog.L|
|00000720| 6f 67 53 70 65 63 69 61 | 6c 45 76 65 6e 74 28 22 |ogSpecia|lEvent("|
|00000730| 61 73 73 61 75 6c 74 5f | 67 61 6d 65 63 6f 64 65 |assault_|gamecode|
|00000740| 22 2c 20 47 61 6d 65 43 | 6f 64 65 2c 20 50 61 72 |", GameC|ode, Par|
|00000750| 74 29 3b 0d 0a 09 7d 0d | 0a 7d 0d 0a 0d 0a 66 75 |t);...}.|.}....fu|
|00000760| 6e 63 74 69 6f 6e 20 41 | 64 64 44 65 66 61 75 6c |nction A|ddDefaul|
|00000770| 74 49 6e 76 65 6e 74 6f | 72 79 28 20 70 61 77 6e |tInvento|ry( pawn|
|00000780| 20 50 6c 61 79 65 72 50 | 61 77 6e 20 29 0d 0a 7b | PlayerP|awn )..{|
|00000790| 0d 0a 09 62 55 73 65 54 | 72 61 6e 73 6c 6f 63 61 |...bUseT|ransloca|
|000007a0| 74 6f 72 20 3d 20 66 61 | 6c 73 65 3b 20 2f 2f 20 |tor = fa|lse; // |
|000007b0| 6e 65 76 65 72 20 61 6c | 6c 6f 77 20 74 72 61 6e |never al|low tran|
|000007c0| 73 6c 6f 63 61 74 6f 72 | 20 69 6e 20 61 73 73 61 |slocator| in assa|
|000007d0| 75 6c 74 0d 0a 09 53 75 | 70 65 72 2e 41 64 64 44 |ult...Su|per.AddD|
|000007e0| 65 66 61 75 6c 74 49 6e | 76 65 6e 74 6f 72 79 28 |efaultIn|ventory(|
|000007f0| 50 6c 61 79 65 72 50 61 | 77 6e 29 3b 0d 0a 7d 09 |PlayerPa|wn);..}.|
|00000800| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 49 6e 69 |....func|tion Ini|
|00000810| 74 52 61 74 65 64 47 61 | 6d 65 28 4c 61 64 64 65 |tRatedGa|me(Ladde|
|00000820| 72 49 6e 76 65 6e 74 6f | 72 79 20 4c 61 64 64 65 |rInvento|ry Ladde|
|00000830| 72 4f 62 6a 2c 20 50 6c | 61 79 65 72 50 61 77 6e |rObj, Pl|ayerPawn|
|00000840| 20 4c 61 64 64 65 72 50 | 6c 61 79 65 72 29 0d 0a | LadderP|layer)..|
|00000850| 7b 0d 0a 09 53 75 70 65 | 72 2e 49 6e 69 74 52 61 |{...Supe|r.InitRa|
|00000860| 74 65 64 47 61 6d 65 28 | 4c 61 64 64 65 72 4f 62 |tedGame(|LadderOb|
|00000870| 6a 2c 20 4c 61 64 64 65 | 72 50 6c 61 79 65 72 29 |j, Ladde|rPlayer)|
|00000880| 3b 0d 0a 09 44 65 66 65 | 6e 73 65 73 20 3d 20 33 |;...Defe|nses = 3|
|00000890| 3b 0d 0a 09 4d 61 78 54 | 65 61 6d 73 20 3d 20 32 |;...MaxT|eams = 2|
|000008a0| 3b 0d 0a 09 62 4a 75 6d | 70 4d 61 74 63 68 20 3d |;...bJum|pMatch =|
|000008b0| 20 66 61 6c 73 65 3b 0d | 0a 7d 0d 0a 0d 0a 73 74 | false;.|.}....st|
|000008c0| 61 74 69 63 20 66 75 6e | 63 74 69 6f 6e 20 52 65 |atic fun|ction Re|
|000008d0| 73 65 74 47 61 6d 65 28 | 29 0d 0a 7b 0d 0a 09 6c |setGame(|)..{...l|
|000008e0| 6f 63 61 6c 20 69 6e 74 | 20 69 3b 0d 0a 0d 0a 09 |ocal int| i;.....|
|000008f0| 44 65 66 61 75 6c 74 2e | 62 44 65 66 65 6e 73 65 |Default.|bDefense|
|00000900| 53 65 74 20 3d 20 46 61 | 6c 73 65 3b 0d 0a 09 44 |Set = Fa|lse;...D|
|00000910| 65 66 61 75 6c 74 2e 4e | 75 6d 44 65 66 65 6e 73 |efault.N|umDefens|
|00000920| 65 73 20 3d 20 30 3b 0d | 0a 09 44 65 66 61 75 6c |es = 0;.|..Defaul|
|00000930| 74 2e 43 75 72 72 65 6e | 74 44 65 66 65 6e 64 65 |t.Curren|tDefende|
|00000940| 72 20 3d 20 30 3b 0d 0a | 09 44 65 66 61 75 6c 74 |r = 0;..|.Default|
|00000950| 2e 53 61 76 65 64 54 69 | 6d 65 20 3d 20 30 3b 0d |.SavedTi|me = 0;.|
|00000960| 0a 09 44 65 66 61 75 6c | 74 2e 47 61 6d 65 43 6f |..Defaul|t.GameCo|
|00000970| 64 65 20 3d 20 22 22 3b | 0d 0a 09 44 65 66 61 75 |de = "";|...Defau|
|00000980| 6c 74 2e 50 61 72 74 20 | 3d 20 31 3b 0d 0a 09 44 |lt.Part |= 1;...D|
|00000990| 65 66 61 75 6c 74 2e 62 | 54 69 65 50 61 72 74 4f |efault.b|TiePartO|
|000009a0| 6e 65 20 3d 20 66 61 6c | 73 65 3b 0d 0a 09 53 74 |ne = fal|se;...St|
|000009b0| 61 74 69 63 53 61 76 65 | 43 6f 6e 66 69 67 28 29 |aticSave|Config()|
|000009c0| 3b 0d 0a 7d 0d 0a 0d 0a | 65 76 65 6e 74 20 49 6e |;..}....|event In|
|000009d0| 69 74 47 61 6d 65 28 20 | 73 74 72 69 6e 67 20 4f |itGame( |string O|
|000009e0| 70 74 69 6f 6e 73 2c 20 | 6f 75 74 20 73 74 72 69 |ptions, |out stri|
|000009f0| 6e 67 20 45 72 72 6f 72 | 20 29 0d 0a 7b 0d 0a 09 |ng Error| )..{...|
|00000a00| 6c 6f 63 61 6c 20 46 6f | 72 74 53 74 61 6e 64 61 |local Fo|rtStanda|
|00000a10| 72 64 20 46 3b 0d 0a 09 | 6c 6f 63 61 6c 20 6e 61 |rd F;...|local na|
|00000a20| 6d 65 20 45 6e 64 43 61 | 6d 54 61 67 3b 0d 0a 09 |me EndCa|mTag;...|
|00000a30| 0d 0a 09 53 75 70 65 72 | 2e 49 6e 69 74 47 61 6d |...Super|.InitGam|
|00000a40| 65 28 4f 70 74 69 6f 6e | 73 2c 20 45 72 72 6f 72 |e(Option|s, Error|
|00000a50| 29 3b 0d 0a 0d 0a 09 54 | 69 6d 65 4c 69 6d 69 74 |);.....T|imeLimit|
|00000a60| 20 3d 20 31 3b 0d 0a 09 | 69 66 20 28 20 53 61 76 | = 1;...|if ( Sav|
|00000a70| 65 64 54 69 6d 65 20 3e | 20 30 20 29 0d 0a 09 7b |edTime >| 0 )...{|
|00000a80| 0d 0a 09 09 52 65 6d 61 | 69 6e 69 6e 67 54 69 6d |....Rema|iningTim|
|00000a90| 65 20 3d 20 53 61 76 65 | 64 54 69 6d 65 3b 0d 0a |e = Save|dTime;..|
|00000aa0| 09 09 46 6f 72 45 61 63 | 68 20 41 6c 6c 41 63 74 |..ForEac|h AllAct|
|00000ab0| 6f 72 73 28 63 6c 61 73 | 73 27 46 6f 72 74 53 74 |ors(clas|s'FortSt|
|00000ac0| 61 6e 64 61 72 64 27 2c | 20 46 29 0d 0a 09 09 09 |andard',| F).....|
|00000ad0| 69 66 20 28 20 46 2e 45 | 6e 64 43 61 6d 54 61 67 |if ( F.E|ndCamTag|
|00000ae0| 20 21 3d 20 27 27 20 29 | 0d 0a 09 09 09 09 45 6e | != '' )|......En|
|00000af0| 64 43 61 6d 54 61 67 20 | 3d 20 46 2e 45 6e 64 43 |dCamTag |= F.EndC|
|00000b00| 61 6d 54 61 67 3b 0d 0a | 09 7d 0d 0a 09 65 6c 73 |amTag;..|.}...els|
|00000b10| 65 0d 0a 09 7b 0d 0a 09 | 09 46 6f 72 45 61 63 68 |e...{...|.ForEach|
|00000b20| 20 41 6c 6c 41 63 74 6f | 72 73 28 63 6c 61 73 73 | AllActo|rs(class|
|00000b30| 27 46 6f 72 74 53 74 61 | 6e 64 61 72 64 27 2c 20 |'FortSta|ndard', |
|00000b40| 46 29 0d 0a 09 09 7b 0d | 0a 09 09 09 54 69 6d 65 |F)....{.|....Time|
|00000b50| 4c 69 6d 69 74 20 3d 20 | 4d 61 78 28 54 69 6d 65 |Limit = |Max(Time|
|00000b60| 4c 69 6d 69 74 2c 20 46 | 2e 44 65 66 65 6e 73 65 |Limit, F|.Defense|
|00000b70| 54 69 6d 65 29 3b 0d 0a | 09 09 09 69 66 20 28 20 |Time);..|...if ( |
|00000b80| 46 2e 45 6e 64 43 61 6d | 54 61 67 20 21 3d 20 27 |F.EndCam|Tag != '|
|00000b90| 27 20 29 0d 0a 09 09 09 | 09 45 6e 64 43 61 6d 54 |' ).....|.EndCamT|
|00000ba0| 61 67 20 3d 20 46 2e 45 | 6e 64 43 61 6d 54 61 67 |ag = F.E|ndCamTag|
|00000bb0| 3b 0d 0a 09 09 7d 0d 0a | 09 09 0d 0a 09 09 52 65 |;....}..|......Re|
|00000bc0| 6d 61 69 6e 69 6e 67 54 | 69 6d 65 20 3d 20 54 69 |mainingT|ime = Ti|
|00000bd0| 6d 65 4c 69 6d 69 74 20 | 2a 20 36 30 3b 0d 0a 09 |meLimit |* 60;...|
|00000be0| 7d 0d 0a 09 69 66 20 28 | 20 45 6e 64 43 61 6d 54 |}...if (| EndCamT|
|00000bf0| 61 67 20 21 3d 20 27 27 | 20 29 0d 0a 09 09 46 6f |ag != ''| )....Fo|
|00000c00| 72 45 61 63 68 20 41 6c | 6c 41 63 74 6f 72 73 28 |rEach Al|lActors(|
|00000c10| 63 6c 61 73 73 27 53 70 | 65 63 74 61 74 6f 72 43 |class'Sp|ectatorC|
|00000c20| 61 6d 27 2c 20 45 6e 64 | 43 61 6d 2c 20 45 6e 64 |am', End|Cam, End|
|00000c30| 43 61 6d 54 61 67 29 0d | 0a 09 09 09 62 72 65 61 |CamTag).|....brea|
|00000c40| 6b 3b 0d 0a 09 47 6f 61 | 6c 54 65 61 6d 53 63 6f |k;...Goa|lTeamSco|
|00000c50| 72 65 20 3d 20 30 3b 0d | 0a 09 46 72 61 67 4c 69 |re = 0;.|..FragLi|
|00000c60| 6d 69 74 20 3d 20 30 3b | 0d 0a 09 62 55 73 65 54 |mit = 0;|...bUseT|
|00000c70| 72 61 6e 73 6c 6f 63 61 | 74 6f 72 20 3d 20 66 61 |ransloca|tor = fa|
|00000c80| 6c 73 65 3b 0d 0a 09 62 | 4a 75 6d 70 4d 61 74 63 |lse;...b|JumpMatc|
|00000c90| 68 20 3d 20 66 61 6c 73 | 65 3b 0d 0a 7d 0d 0a 0d |h = fals|e;..}...|
|00000ca0| 0a 66 75 6e 63 74 69 6f | 6e 20 46 61 6c 6c 42 61 |.functio|n FallBa|
|00000cb0| 63 6b 54 6f 28 6e 61 6d | 65 20 46 2c 20 69 6e 74 |ckTo(nam|e F, int|
|00000cc0| 20 50 72 69 6f 72 69 74 | 79 29 0d 0a 7b 0d 0a 09 | Priorit|y)..{...|
|00000cd0| 6c 6f 63 61 6c 20 69 6e | 74 20 69 3b 0d 0a 0d 0a |local in|t i;....|
|00000ce0| 09 66 6f 72 20 28 20 69 | 3d 30 3b 20 69 3c 6e 75 |.for ( i|=0; i<nu|
|00000cf0| 6d 46 6f 72 74 73 3b 20 | 69 2b 2b 20 29 0d 0a 09 |mForts; |i++ )...|
|00000d00| 09 69 66 20 28 20 46 6f | 72 74 5b 69 5d 2e 74 61 |.if ( Fo|rt[i].ta|
|00000d10| 67 20 3d 3d 20 46 20 29 | 0d 0a 09 09 7b 0d 0a 09 |g == F )|....{...|
|00000d20| 09 09 46 6f 72 74 5b 69 | 5d 2e 44 65 66 65 6e 73 |..Fort[i|].Defens|
|00000d30| 65 50 72 69 6f 72 69 74 | 79 20 3d 20 50 72 69 6f |ePriorit|y = Prio|
|00000d40| 72 69 74 79 3b 0d 0a 09 | 09 09 72 65 74 75 72 6e |rity;...|..return|
|00000d50| 3b 0d 0a 09 09 7d 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |;....}..|}....fun|
|00000d60| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 53 75 63 63 65 |ction bo|ol Succe|
|00000d70| 73 73 66 75 6c 47 61 6d | 65 28 29 0d 0a 7b 0d 0a |ssfulGam|e()..{..|
|00000d80| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 69 3b 0d 0a 0d |.local i|nt i;...|
|00000d90| 0a 09 69 66 20 28 52 61 | 74 65 64 50 6c 61 79 65 |..if (Ra|tedPlaye|
|00000da0| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00000db0| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 20 3d 3d 20 |ionInfo.|Team == |
|00000dc0| 41 74 74 61 63 6b 65 72 | 2e 54 65 61 6d 49 6e 64 |Attacker|.TeamInd|
|00000dd0| 65 78 29 0d 0a 09 7b 0d | 0a 09 09 2f 2f 20 49 66 |ex)...{.|...// If|
|00000de0| 20 74 68 65 20 70 6c 61 | 79 65 72 20 69 73 20 74 | the pla|yer is t|
|00000df0| 68 65 20 61 74 74 61 63 | 6b 65 72 2e 0d 0a 09 09 |he attac|ker.....|
|00000e00| 72 65 74 75 72 6e 20 62 | 41 73 73 61 75 6c 74 57 |return b|AssaultW|
|00000e10| 6f 6e 3b 0d 0a 09 7d 20 | 65 6c 73 65 20 7b 0d 0a |on;...} |else {..|
|00000e20| 09 09 2f 2f 20 49 66 20 | 74 68 65 20 70 6c 61 79 |..// If |the play|
|00000e30| 65 72 20 69 73 20 74 68 | 65 20 64 65 66 65 6e 64 |er is th|e defend|
|00000e40| 65 72 2e 0d 0a 09 09 72 | 65 74 75 72 6e 20 21 62 |er.....r|eturn !b|
|00000e50| 41 73 73 61 75 6c 74 57 | 6f 6e 3b 0d 0a 09 7d 0d |AssaultW|on;...}.|
|00000e60| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 62 |.}....fu|nction b|
|00000e70| 6f 6f 6c 20 52 65 73 74 | 61 72 74 50 6c 61 79 65 |ool Rest|artPlaye|
|00000e80| 72 28 20 70 61 77 6e 20 | 61 50 6c 61 79 65 72 20 |r( pawn |aPlayer |
|00000e90| 29 09 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 42 6f |)...{...|local Bo|
|00000ea0| 74 20 42 3b 0d 0a 0d 0a | 09 2f 2f 20 62 6f 6f 73 |t B;....|.// boos|
|00000eb0| 74 20 61 74 74 61 63 6b | 65 72 20 41 49 20 61 20 |t attack|er AI a |
|00000ec0| 6c 69 74 74 6c 65 0d 0a | 09 42 20 3d 20 42 6f 74 |little..|.B = Bot|
|00000ed0| 28 61 50 6c 61 79 65 72 | 29 3b 0d 0a 09 69 66 20 |(aPlayer|);...if |
|00000ee0| 28 20 28 42 20 21 3d 20 | 4e 6f 6e 65 29 20 26 26 |( (B != |None) &&|
|00000ef0| 20 28 42 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 | (B.Play|erReplic|
|00000f00| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 20 21 |ationInf|o.Team !|
|00000f10| 3d 20 44 65 66 65 6e 64 | 65 72 2e 54 65 61 6d 49 |= Defend|er.TeamI|
|00000f20| 6e 64 65 78 29 0d 0a 09 | 09 26 26 20 28 42 6f 74 |ndex)...|.&& (Bot|
|00000f30| 28 4c 65 61 64 65 72 5b | 42 2e 50 6c 61 79 65 72 |(Leader[|B.Player|
|00000f40| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00000f50| 54 65 61 6d 5d 29 20 21 | 3d 20 4e 6f 6e 65 29 20 |Team]) !|= None) |
|00000f60| 29 20 0d 0a 09 7b 0d 0a | 09 09 69 66 20 28 20 62 |) ...{..|..if ( b|
|00000f70| 4e 6f 76 69 63 65 4d 6f | 64 65 20 26 26 20 28 4c |NoviceMo|de && (L|
|00000f80| 65 76 65 6c 2e 47 61 6d | 65 2e 44 69 66 66 69 63 |evel.Gam|e.Diffic|
|00000f90| 75 6c 74 79 20 3d 3d 20 | 33 29 20 29 0d 0a 09 09 |ulty == |3) )....|
|00000fa0| 7b 0d 0a 09 09 09 42 2e | 62 4e 6f 76 69 63 65 20 |{.....B.|bNovice |
|00000fb0| 3d 20 66 61 6c 73 65 3b | 0d 0a 09 09 09 42 2e 73 |= false;|.....B.s|
|00000fc0| 6b 69 6c 6c 20 3d 20 30 | 3b 0d 0a 09 09 7d 0d 0a |kill = 0|;....}..|
|00000fd0| 09 09 65 6c 73 65 0d 0a | 09 09 09 42 2e 73 6b 69 |..else..|...B.ski|
|00000fe0| 6c 6c 20 3d 20 46 43 6c | 61 6d 70 28 4c 65 76 65 |ll = FCl|amp(Leve|
|00000ff0| 6c 2e 47 61 6d 65 2e 44 | 69 66 66 69 63 75 6c 74 |l.Game.D|ifficult|
|00001000| 79 20 2b 20 31 2c 20 42 | 2e 73 6b 69 6c 6c 2c 20 |y + 1, B|.skill, |
|00001010| 33 29 3b 20 0d 0a 09 7d | 0d 0a 09 72 65 74 75 72 |3); ...}|...retur|
|00001020| 6e 20 53 75 70 65 72 2e | 52 65 73 74 61 72 74 50 |n Super.|RestartP|
|00001030| 6c 61 79 65 72 28 61 50 | 6c 61 79 65 72 29 3b 0d |layer(aP|layer);.|
|00001040| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 52 |.}....fu|nction R|
|00001050| 65 73 74 61 72 74 47 61 | 6d 65 28 29 0d 0a 7b 0d |estartGa|me()..{.|
|00001060| 0a 09 6c 6f 63 61 6c 20 | 50 61 77 6e 20 50 3b 0d |..local |Pawn P;.|
|00001070| 0a 09 6c 6f 63 61 6c 20 | 69 6e 74 20 69 3b 0d 0a |..local |int i;..|
|00001080| 0d 0a 09 69 66 20 28 20 | 62 44 6f 6e 74 52 65 73 |...if ( |bDontRes|
|00001090| 74 61 72 74 20 29 0d 0a | 09 09 72 65 74 75 72 6e |tart )..|..return|
|000010a0| 3b 0d 0a 0d 0a 09 69 66 | 20 28 20 21 62 47 61 6d |;.....if| ( !bGam|
|000010b0| 65 45 6e 64 65 64 20 7c | 7c 20 28 45 6e 64 54 69 |eEnded ||| (EndTi|
|000010c0| 6d 65 20 3e 20 4c 65 76 | 65 6c 2e 54 69 6d 65 53 |me > Lev|el.TimeS|
|000010d0| 65 63 6f 6e 64 73 29 20 | 29 20 2f 2f 20 73 74 69 |econds) |) // sti|
|000010e0| 6c 6c 20 73 68 6f 77 69 | 6e 67 20 65 6e 64 20 73 |ll showi|ng end s|
|000010f0| 63 72 65 65 6e 0d 0a 09 | 09 72 65 74 75 72 6e 3b |creen...|.return;|
|00001100| 0d 0a 0d 0a 09 2f 2f 20 | 49 66 20 61 20 74 65 61 |.....// |If a tea|
|00001110| 6d 20 68 61 73 20 64 65 | 66 65 6e 64 65 64 20 61 |m has de|fended a|
|00001120| 6e 64 20 61 74 74 61 63 | 6b 65 64 2c 20 74 68 65 |nd attac|ked, the|
|00001130| 20 67 61 6d 65 20 69 73 | 20 6f 76 65 72 0d 0a 09 | game is| over...|
|00001140| 2f 2f 20 4f 72 20 69 6e | 20 61 20 72 61 74 65 64 |// Or in| a rated|
|00001150| 20 67 61 6d 65 20 69 66 | 20 74 68 65 20 70 6c 61 | game if| the pla|
|00001160| 79 65 72 20 66 61 69 6c | 65 64 20 6f 6e 20 61 74 |yer fail|ed on at|
|00001170| 74 61 63 6b 0d 0a 09 69 | 66 20 28 20 62 44 65 66 |tack...i|f ( bDef|
|00001180| 65 6e 73 65 53 65 74 20 | 0d 0a 09 09 7c 7c 20 28 |enseSet |....|| (|
|00001190| 62 52 61 74 65 64 47 61 | 6d 65 20 26 26 20 28 52 |bRatedGa|me && (R|
|000011a0| 61 74 65 64 50 6c 61 79 | 65 72 2e 50 6c 61 79 65 |atedPlay|er.Playe|
|000011b0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|000011c0| 2e 54 65 61 6d 49 44 20 | 3d 3d 20 41 74 74 61 63 |.TeamID |== Attac|
|000011d0| 6b 65 72 2e 54 65 61 6d | 49 6e 64 65 78 29 20 26 |ker.Team|Index) &|
|000011e0| 26 20 21 62 41 73 73 61 | 75 6c 74 57 6f 6e 29 20 |& !bAssa|ultWon) |
|000011f0| 29 20 0d 0a 09 7b 0d 0a | 09 09 52 65 73 65 74 47 |) ...{..|..ResetG|
|00001200| 61 6d 65 28 29 3b 0d 0a | 09 09 53 75 70 65 72 2e |ame();..|..Super.|
|00001210| 52 65 73 74 61 72 74 47 | 61 6d 65 28 29 3b 0d 0a |RestartG|ame();..|
|00001220| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 7d 0d 0a 0d |..return|;...}...|
|00001230| 0a 09 62 44 6f 6e 74 52 | 65 73 74 61 72 74 20 3d |..bDontR|estart =|
|00001240| 20 74 72 75 65 3b 20 2f | 2f 20 64 6f 6e 27 74 20 | true; /|/ don't |
|00001250| 72 65 73 74 61 72 74 20 | 6d 6f 72 65 20 74 68 61 |restart |more tha|
|00001260| 6e 20 6f 6e 63 65 0d 0a | 09 62 44 65 66 65 6e 73 |n once..|.bDefens|
|00001270| 65 53 65 74 20 3d 20 74 | 72 75 65 3b 09 0d 0a 09 |eSet = t|rue;....|
|00001280| 69 66 20 28 20 44 65 66 | 65 6e 64 65 72 2e 54 65 |if ( Def|ender.Te|
|00001290| 61 6d 49 6e 64 65 78 20 | 3d 3d 20 31 20 29 0d 0a |amIndex |== 1 )..|
|000012a0| 09 09 43 75 72 72 65 6e | 74 44 65 66 65 6e 64 65 |..Curren|tDefende|
|000012b0| 72 20 3d 20 30 3b 0d 0a | 09 65 6c 73 65 0d 0a 09 |r = 0;..|.else...|
|000012c0| 09 43 75 72 72 65 6e 74 | 44 65 66 65 6e 64 65 72 |.Current|Defender|
|000012d0| 20 3d 20 31 3b 0d 0a 09 | 50 61 72 74 20 3d 20 32 | = 1;...|Part = 2|
|000012e0| 3b 0d 0a 09 53 61 76 65 | 64 54 69 6d 65 20 20 3d |;...Save|dTime =|
|000012f0| 20 54 69 6d 65 4c 69 6d | 69 74 20 2a 20 36 30 20 | TimeLim|it * 60 |
|00001300| 2d 20 52 65 6d 61 69 6e | 69 6e 67 54 69 6d 65 3b |- Remain|ingTime;|
|00001310| 0d 0a 0d 0a 09 53 61 76 | 65 43 6f 6e 66 69 67 28 |.....Sav|eConfig(|
|00001320| 29 3b 0d 0a 09 4c 65 76 | 65 6c 2e 53 65 72 76 65 |);...Lev|el.Serve|
|00001330| 72 54 72 61 76 65 6c 28 | 20 22 3f 52 65 73 74 61 |rTravel(| "?Resta|
|00001340| 72 74 22 2c 20 66 61 6c | 73 65 20 29 3b 0d 0a 7d |rt", fal|se );..}|
|00001350| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 50 6c 61 |....func|tion Pla|
|00001360| 79 53 74 61 72 74 55 70 | 4d 65 73 73 61 67 65 28 |yStartUp|Message(|
|00001370| 50 6c 61 79 65 72 50 61 | 77 6e 20 4e 65 77 50 6c |PlayerPa|wn NewPl|
|00001380| 61 79 65 72 29 0d 0a 7b | 0d 0a 09 69 66 20 28 20 |ayer)..{|...if ( |
|00001390| 4e 65 77 50 6c 61 79 65 | 72 2e 50 6c 61 79 65 72 |NewPlaye|r.Player|
|000013a0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|000013b0| 54 65 61 6d 20 3e 20 31 | 20 29 0d 0a 09 09 72 65 |Team > 1| )....re|
|000013c0| 74 75 72 6e 3b 0d 0a 0d | 0a 09 69 66 20 28 20 44 |turn;...|..if ( D|
|000013d0| 65 66 65 6e 64 65 72 20 | 3d 3d 20 54 65 61 6d 73 |efender |== Teams|
|000013e0| 5b 4e 65 77 50 6c 61 79 | 65 72 2e 50 6c 61 79 65 |[NewPlay|er.Playe|
|000013f0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00001400| 2e 54 65 61 6d 5d 20 29 | 0d 0a 09 09 53 74 61 72 |.Team] )|....Star|
|00001410| 74 75 70 4d 65 73 73 61 | 67 65 20 3d 20 44 65 66 |tupMessa|ge = Def|
|00001420| 65 6e 64 4d 65 73 73 61 | 67 65 3b 0d 0a 09 65 6c |endMessa|ge;...el|
|00001430| 73 65 0d 0a 09 09 53 74 | 61 72 74 55 70 4d 65 73 |se....St|artUpMes|
|00001440| 73 61 67 65 20 3d 20 41 | 74 74 61 63 6b 4d 65 73 |sage = A|ttackMes|
|00001450| 73 61 67 65 3b 0d 0a 0d | 0a 09 53 75 70 65 72 2e |sage;...|..Super.|
|00001460| 50 6c 61 79 53 74 61 72 | 74 75 70 4d 65 73 73 61 |PlayStar|tupMessa|
|00001470| 67 65 28 4e 65 77 50 6c | 61 79 65 72 29 3b 0d 0a |ge(NewPl|ayer);..|
|00001480| 7d 0d 0a 0d 0a 2f 2f 20 | 44 65 66 65 6e 64 65 72 |}....// |Defender|
|00001490| 73 20 61 6c 77 61 79 73 | 20 75 73 65 20 74 65 61 |s always| use tea|
|000014a0| 6d 20 30 20 6c 61 62 65 | 6c 6c 65 64 20 73 74 61 |m 0 labe|lled sta|
|000014b0| 72 74 73 2c 20 61 74 74 | 61 63 6b 65 72 73 20 75 |rts, att|ackers u|
|000014c0| 73 65 20 74 65 61 6d 20 | 31 20 6c 61 62 65 6c 6c |se team |1 labell|
|000014d0| 65 64 20 73 74 61 72 74 | 73 09 0d 0a 66 75 6e 63 |ed start|s...func|
|000014e0| 74 69 6f 6e 20 4e 61 76 | 69 67 61 74 69 6f 6e 50 |tion Nav|igationP|
|000014f0| 6f 69 6e 74 20 46 69 6e | 64 50 6c 61 79 65 72 53 |oint Fin|dPlayerS|
|00001500| 74 61 72 74 28 50 61 77 | 6e 20 50 6c 61 79 65 72 |tart(Paw|n Player|
|00001510| 2c 20 6f 70 74 69 6f 6e | 61 6c 20 62 79 74 65 20 |, option|al byte |
|00001520| 49 6e 54 65 61 6d 2c 20 | 6f 70 74 69 6f 6e 61 6c |InTeam, |optional|
|00001530| 20 73 74 72 69 6e 67 20 | 69 6e 63 6f 6d 69 6e 67 | string |incoming|
|00001540| 4e 61 6d 65 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |Name)..{|...local|
|00001550| 20 50 61 77 6e 20 50 3b | 0d 0a 09 6c 6f 63 61 6c | Pawn P;|...local|
|00001560| 20 69 6e 74 20 69 2c 64 | 3b 0d 0a 09 6c 6f 63 61 | int i,d|;...loca|
|00001570| 6c 20 62 79 74 65 20 54 | 65 61 6d 3b 0d 0a 0d 0a |l byte T|eam;....|
|00001580| 09 69 66 20 28 20 28 50 | 6c 61 79 65 72 20 21 3d |.if ( (P|layer !=|
|00001590| 20 4e 6f 6e 65 29 20 26 | 26 20 28 50 6c 61 79 65 | None) &|& (Playe|
|000015a0| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|000015b0| 69 6f 6e 49 6e 66 6f 20 | 21 3d 20 4e 6f 6e 65 29 |ionInfo |!= None)|
|000015c0| 20 29 0d 0a 09 09 54 65 | 61 6d 20 3d 20 50 6c 61 | )....Te|am = Pla|
|000015d0| 79 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |yer.Play|erReplic|
|000015e0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 3b 0d |ationInf|o.Team;.|
|000015f0| 0a 09 65 6c 73 65 0d 0a | 09 09 54 65 61 6d 20 3d |..else..|..Team =|
|00001600| 20 49 6e 54 65 61 6d 3b | 0d 0a 0d 0a 09 69 66 20 | InTeam;|.....if |
|00001610| 28 20 54 65 61 6d 20 21 | 3d 20 32 35 35 20 29 0d |( Team !|= 255 ).|
|00001620| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 20 54 65 61 6d |..{....i|f ( Team|
|00001630| 20 3e 20 31 20 29 0d 0a | 09 09 09 54 65 61 6d 20 | > 1 )..|...Team |
|00001640| 3d 20 30 3b 0d 0a 09 09 | 69 66 20 28 20 44 65 66 |= 0;....|if ( Def|
|00001650| 65 6e 64 65 72 20 3d 3d | 20 4e 6f 6e 65 20 29 0d |ender ==| None ).|
|00001660| 0a 09 09 7b 0d 0a 09 09 | 09 69 66 20 28 20 62 44 |...{....|.if ( bD|
|00001670| 65 66 65 6e 73 65 53 65 | 74 20 29 0d 0a 09 09 09 |efenseSe|t ).....|
|00001680| 09 64 20 3d 20 43 75 72 | 72 65 6e 74 44 65 66 65 |.d = Cur|rentDefe|
|00001690| 6e 64 65 72 3b 0d 0a 09 | 09 09 65 6c 73 65 20 69 |nder;...|..else i|
|000016a0| 66 20 28 20 54 65 61 6d | 20 3d 3d 20 30 20 29 0d |f ( Team| == 0 ).|
|000016b0| 0a 09 09 09 09 64 20 3d | 20 31 3b 0d 0a 09 09 09 |.....d =| 1;.....|
|000016c0| 65 6c 73 65 20 0d 0a 09 | 09 09 09 64 20 3d 20 30 |else ...|...d = 0|
|000016d0| 3b 0d 0a 0d 0a 09 09 09 | 44 65 66 65 6e 64 65 72 |;.......|Defender|
|000016e0| 20 3d 20 54 65 61 6d 73 | 5b 64 5d 3b 0d 0a 09 09 | = Teams|[d];....|
|000016f0| 09 69 66 20 28 20 64 20 | 3d 3d 20 30 20 29 0d 0a |.if ( d |== 0 )..|
|00001700| 09 09 09 09 41 74 74 61 | 63 6b 65 72 20 3d 20 54 |....Atta|cker = T|
|00001710| 65 61 6d 73 5b 31 5d 3b | 0d 0a 09 09 09 65 6c 73 |eams[1];|.....els|
|00001720| 65 0d 0a 09 09 09 09 41 | 74 74 61 63 6b 65 72 20 |e......A|ttacker |
|00001730| 3d 20 54 65 61 6d 73 5b | 30 5d 3b 0d 0a 0d 0a 09 |= Teams[|0];.....|
|00001740| 09 09 66 6f 72 20 28 20 | 50 3d 4c 65 76 65 6c 2e |..for ( |P=Level.|
|00001750| 50 61 77 6e 4c 69 73 74 | 3b 20 50 21 3d 4e 6f 6e |PawnList|; P!=Non|
|00001760| 65 3b 20 50 3d 50 2e 4e | 65 78 74 50 61 77 6e 20 |e; P=P.N|extPawn |
|00001770| 29 0d 0a 09 09 09 09 69 | 66 20 28 20 50 2e 49 73 |)......i|f ( P.Is|
|00001780| 41 28 27 53 74 61 74 69 | 6f 6e 61 72 79 50 61 77 |A('Stati|onaryPaw|
|00001790| 6e 27 29 20 29 0d 0a 09 | 09 09 09 09 53 74 61 74 |n') )...|....Stat|
|000017a0| 69 6f 6e 61 72 79 50 61 | 77 6e 28 50 29 2e 53 65 |ionaryPa|wn(P).Se|
|000017b0| 74 54 65 61 6d 28 44 65 | 66 65 6e 64 65 72 2e 54 |tTeam(De|fender.T|
|000017c0| 65 61 6d 49 6e 64 65 78 | 29 3b 0d 0a 0d 0a 09 09 |eamIndex|);......|
|000017d0| 09 66 6f 72 20 28 69 3d | 30 3b 20 69 3c 6e 75 6d |.for (i=|0; i<num|
|000017e0| 46 6f 72 74 73 3b 20 69 | 2b 2b 20 29 0d 0a 09 09 |Forts; i|++ )....|
|000017f0| 09 7b 0d 0a 09 09 09 09 | 69 66 20 28 20 64 20 3d |.{......|if ( d =|
|00001800| 3d 20 30 20 29 0d 0a 09 | 09 09 09 09 46 6f 72 74 |= 0 )...|....Fort|
|00001810| 5b 69 5d 2e 53 6b 69 6e | 20 3d 20 74 65 78 74 75 |[i].Skin| = textu|
|00001820| 72 65 27 4a 46 6c 61 67 | 31 31 27 3b 0d 0a 09 09 |re'JFlag|11';....|
|00001830| 09 09 65 6c 73 65 20 69 | 66 20 28 20 64 20 3d 3d |..else i|f ( d ==|
|00001840| 20 31 20 29 0d 0a 09 09 | 09 09 09 46 6f 72 74 5b | 1 )....|...Fort[|
|00001850| 69 5d 2e 53 6b 69 6e 20 | 3d 20 74 65 78 74 75 72 |i].Skin |= textur|
|00001860| 65 27 4a 46 6c 61 67 31 | 32 27 3b 20 0d 0a 09 09 |e'JFlag1|2'; ....|
|00001870| 09 7d 0d 0a 09 09 09 69 | 66 20 28 57 6f 72 6c 64 |.}.....i|f (World|
|00001880| 4c 6f 67 20 21 3d 20 4e | 6f 6e 65 29 0d 0a 09 09 |Log != N|one)....|
|00001890| 09 7b 0d 0a 09 09 09 09 | 57 6f 72 6c 64 4c 6f 67 |.{......|WorldLog|
|000018a0| 2e 4c 6f 67 53 70 65 63 | 69 61 6c 45 76 65 6e 74 |.LogSpec|ialEvent|
|000018b0| 28 22 61 73 73 61 75 6c | 74 5f 64 65 66 65 6e 64 |("assaul|t_defend|
|000018c0| 65 72 22 2c 20 44 65 66 | 65 6e 64 65 72 2e 54 65 |er", Def|ender.Te|
|000018d0| 61 6d 49 6e 64 65 78 29 | 3b 0d 0a 09 09 09 09 57 |amIndex)|;......W|
|000018e0| 6f 72 6c 64 4c 6f 67 2e | 4c 6f 67 53 70 65 63 69 |orldLog.|LogSpeci|
|000018f0| 61 6c 45 76 65 6e 74 28 | 22 61 73 73 61 75 6c 74 |alEvent(|"assault|
|00001900| 5f 61 74 74 61 63 6b 65 | 72 22 2c 20 41 74 74 61 |_attacke|r", Atta|
|00001910| 63 6b 65 72 2e 54 65 61 | 6d 49 6e 64 65 78 29 3b |cker.Tea|mIndex);|
|00001920| 0d 0a 09 09 09 7d 0d 0a | 09 09 09 69 66 20 28 4c |.....}..|...if (L|
|00001930| 6f 63 61 6c 4c 6f 67 20 | 21 3d 20 4e 6f 6e 65 29 |ocalLog |!= None)|
|00001940| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 4c 6f 63 61 |.....{..|....Loca|
|00001950| 6c 4c 6f 67 2e 4c 6f 67 | 53 70 65 63 69 61 6c 45 |lLog.Log|SpecialE|
|00001960| 76 65 6e 74 28 22 61 73 | 73 61 75 6c 74 5f 64 65 |vent("as|sault_de|
|00001970| 66 65 6e 64 65 72 22 2c | 20 44 65 66 65 6e 64 65 |fender",| Defende|
|00001980| 72 2e 54 65 61 6d 49 6e | 64 65 78 29 3b 0d 0a 09 |r.TeamIn|dex);...|
|00001990| 09 09 09 4c 6f 63 61 6c | 4c 6f 67 2e 4c 6f 67 53 |...Local|Log.LogS|
|000019a0| 70 65 63 69 61 6c 45 76 | 65 6e 74 28 22 61 73 73 |pecialEv|ent("ass|
|000019b0| 61 75 6c 74 5f 61 74 74 | 61 63 6b 65 72 22 2c 20 |ault_att|acker", |
|000019c0| 41 74 74 61 63 6b 65 72 | 2e 54 65 61 6d 49 6e 64 |Attacker|.TeamInd|
|000019d0| 65 78 29 3b 0d 0a 09 09 | 09 7d 0d 0a 09 09 7d 0d |ex);....|.}....}.|
|000019e0| 0a 09 09 69 66 20 28 20 | 54 65 61 6d 73 5b 54 65 |...if ( |Teams[Te|
|000019f0| 61 6d 5d 20 3d 3d 20 44 | 65 66 65 6e 64 65 72 20 |am] == D|efender |
|00001a00| 29 0d 0a 09 09 09 54 65 | 61 6d 20 3d 20 30 3b 0d |).....Te|am = 0;.|
|00001a10| 0a 09 09 65 6c 73 65 0d | 0a 09 09 09 54 65 61 6d |...else.|....Team|
|00001a20| 20 3d 20 31 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 72 65 | = 1;...|}.....re|
|00001a30| 74 75 72 6e 20 53 75 70 | 65 72 2e 46 69 6e 64 50 |turn Sup|er.FindP|
|00001a40| 6c 61 79 65 72 53 74 61 | 72 74 28 4e 6f 6e 65 2c |layerSta|rt(None,|
|00001a50| 20 54 65 61 6d 2c 20 69 | 6e 63 6f 6d 69 6e 67 4e | Team, i|ncomingN|
|00001a60| 61 6d 65 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |ame);..}|....func|
|00001a70| 74 69 6f 6e 20 53 65 6e | 64 53 74 61 72 74 4d 65 |tion Sen|dStartMe|
|00001a80| 73 73 61 67 65 28 50 6c | 61 79 65 72 50 61 77 6e |ssage(Pl|ayerPawn|
|00001a90| 20 50 29 0d 0a 7b 0d 0a | 09 50 2e 43 6c 65 61 72 | P)..{..|.P.Clear|
|00001aa0| 50 72 6f 67 72 65 73 73 | 4d 65 73 73 61 67 65 73 |Progress|Messages|
|00001ab0| 28 29 3b 0d 0a 09 50 2e | 53 65 74 50 72 6f 67 72 |();...P.|SetProgr|
|00001ac0| 65 73 73 54 69 6d 65 28 | 38 29 3b 0d 0a 09 69 66 |essTime(|8);...if|
|00001ad0| 20 28 20 50 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 | ( P.Pla|yerRepli|
|00001ae0| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 20 |cationIn|fo.Team |
|00001af0| 3d 3d 20 44 65 66 65 6e | 64 65 72 2e 54 65 61 6d |== Defen|der.Team|
|00001b00| 49 6e 64 65 78 20 29 0d | 0a 09 7b 0d 0a 09 09 50 |Index ).|..{....P|
|00001b10| 2e 53 65 74 50 72 6f 67 | 72 65 73 73 4d 65 73 73 |.SetProg|ressMess|
|00001b20| 61 67 65 28 53 74 61 72 | 74 4d 65 73 73 61 67 65 |age(Star|tMessage|
|00001b30| 2c 20 30 29 3b 0d 0a 09 | 09 50 2e 53 65 74 50 72 |, 0);...|.P.SetPr|
|00001b40| 6f 67 72 65 73 73 4d 65 | 73 73 61 67 65 28 44 65 |ogressMe|ssage(De|
|00001b50| 66 65 6e 64 4d 65 73 73 | 61 67 65 2c 20 31 29 3b |fendMess|age, 1);|
|00001b60| 0d 0a 09 7d 20 65 6c 73 | 65 20 7b 0d 0a 09 09 50 |...} els|e {....P|
|00001b70| 2e 53 65 74 50 72 6f 67 | 72 65 73 73 4d 65 73 73 |.SetProg|ressMess|
|00001b80| 61 67 65 28 53 74 61 72 | 74 4d 65 73 73 61 67 65 |age(Star|tMessage|
|00001b90| 2c 20 30 29 3b 0d 0a 09 | 09 50 2e 53 65 74 50 72 |, 0);...|.P.SetPr|
|00001ba0| 6f 67 72 65 73 73 4d 65 | 73 73 61 67 65 28 41 74 |ogressMe|ssage(At|
|00001bb0| 74 61 63 6b 4d 65 73 73 | 61 67 65 2c 20 31 29 3b |tackMess|age, 1);|
|00001bc0| 0d 0a 09 7d 0d 0a 09 69 | 66 20 28 52 61 74 65 64 |...}...i|f (Rated|
|00001bd0| 50 6c 61 79 65 72 20 3d | 3d 20 4e 6f 6e 65 29 0d |Player =|= None).|
|00001be0| 0a 09 09 50 2e 53 65 74 | 50 72 6f 67 72 65 73 73 |...P.Set|Progress|
|00001bf0| 4d 65 73 73 61 67 65 28 | 4f 62 6a 65 63 74 69 76 |Message(|Objectiv|
|00001c00| 65 73 4d 65 73 73 61 67 | 65 2c 20 32 29 3b 0d 0a |esMessag|e, 2);..|
|00001c10| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 52 65 |}....fun|ction Re|
|00001c20| 6d 6f 76 65 46 6f 72 74 | 28 46 6f 72 74 53 74 61 |moveFort|(FortSta|
|00001c30| 6e 64 61 72 64 20 46 2c | 20 50 61 77 6e 20 69 6e |ndard F,| Pawn in|
|00001c40| 73 74 69 67 61 74 6f 72 | 29 0d 0a 7b 0d 0a 09 6c |stigator|)..{...l|
|00001c50| 6f 63 61 6c 20 69 6e 74 | 20 69 3b 0d 0a 09 6c 6f |ocal int| i;...lo|
|00001c60| 63 61 6c 20 50 61 77 6e | 20 50 3b 0d 0a 09 6c 6f |cal Pawn| P;...lo|
|00001c70| 63 61 6c 20 62 6f 6f 6c | 20 62 46 6f 75 6e 64 3b |cal bool| bFound;|
|00001c80| 0d 0a 09 6c 6f 63 61 6c | 20 4e 61 76 69 67 61 74 |...local| Navigat|
|00001c90| 69 6f 6e 50 6f 69 6e 74 | 20 4e 3b 0d 0a 09 6c 6f |ionPoint| N;...lo|
|00001ca0| 63 61 6c 20 42 6f 74 20 | 42 3b 0d 0a 0d 0a 09 62 |cal Bot |B;.....b|
|00001cb0| 46 6f 72 74 44 6f 77 6e | 20 3d 20 74 72 75 65 3b |FortDown| = true;|
|00001cc0| 0d 0a 09 69 66 20 28 20 | 69 6e 73 74 69 67 61 74 |...if ( |instigat|
|00001cd0| 6f 72 2e 62 49 73 50 6c | 61 79 65 72 20 29 0d 0a |or.bIsPl|ayer )..|
|00001ce0| 09 09 69 6e 73 74 69 67 | 61 74 6f 72 2e 50 6c 61 |..instig|ator.Pla|
|00001cf0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00001d00| 66 6f 2e 53 63 6f 72 65 | 20 2b 3d 20 31 30 3b 0d |fo.Score| += 10;.|
|00001d10| 0a 09 69 66 20 28 20 46 | 2e 44 65 73 74 72 6f 79 |..if ( F|.Destroy|
|00001d20| 65 64 4d 65 73 73 61 67 | 65 20 21 3d 20 22 22 20 |edMessag|e != "" |
|00001d30| 29 0d 0a 09 09 42 72 6f | 61 64 63 61 73 74 4d 65 |)....Bro|adcastMe|
|00001d40| 73 73 61 67 65 28 46 2e | 46 6f 72 74 4e 61 6d 65 |ssage(F.|FortName|
|00001d50| 40 46 2e 44 65 73 74 72 | 6f 79 65 64 4d 65 73 73 |@F.Destr|oyedMess|
|00001d60| 61 67 65 2c 20 74 72 75 | 65 2c 20 27 43 72 69 74 |age, tru|e, 'Crit|
|00001d70| 69 63 61 6c 45 76 65 6e | 74 27 29 3b 0d 0a 0d 0a |icalEven|t');....|
|00001d80| 09 69 66 20 28 20 46 2e | 62 53 61 79 44 65 73 74 |.if ( F.|bSayDest|
|00001d90| 72 6f 79 65 64 20 0d 0a | 09 09 26 26 20 28 69 6e |royed ..|..&& (in|
|00001da0| 73 74 69 67 61 74 6f 72 | 2e 49 73 41 28 27 42 6f |stigator|.IsA('Bo|
|00001db0| 74 27 29 20 7c 7c 20 28 | 28 54 6f 75 72 6e 61 6d |t') || (|(Tournam|
|00001dc0| 65 6e 74 50 6c 61 79 65 | 72 28 69 6e 73 74 69 67 |entPlaye|r(instig|
|00001dd0| 61 74 6f 72 29 20 21 3d | 20 4e 6f 6e 65 29 20 26 |ator) !=| None) &|
|00001de0| 26 20 54 6f 75 72 6e 61 | 6d 65 6e 74 50 6c 61 79 |& Tourna|mentPlay|
|00001df0| 65 72 28 69 6e 73 74 69 | 67 61 74 6f 72 29 2e 62 |er(insti|gator).b|
|00001e00| 41 75 74 6f 54 61 75 6e | 74 29 29 20 29 0d 0a 09 |AutoTaun|t)) )...|
|00001e10| 09 69 6e 73 74 69 67 61 | 74 6f 72 2e 53 65 6e 64 |.instiga|tor.Send|
|00001e20| 54 65 61 6d 4d 65 73 73 | 61 67 65 28 4e 6f 6e 65 |TeamMess|age(None|
|00001e30| 2c 20 27 4f 54 48 45 52 | 27 2c 20 31 36 2c 20 31 |, 'OTHER|', 16, 1|
|00001e40| 35 29 3b 0d 0a 09 65 6c | 73 65 0d 0a 09 09 62 46 |5);...el|se....bF|
|00001e50| 75 6c 66 69 6c 6c 65 64 | 53 70 65 63 69 61 6c 20 |ulfilled|Special |
|00001e60| 3d 20 74 72 75 65 3b 0d | 0a 09 09 09 09 0d 0a 09 |= true;.|........|
|00001e70| 69 66 20 28 20 46 2e 54 | 61 67 20 21 3d 20 27 27 |if ( F.T|ag != ''|
|00001e80| 20 29 0d 0a 09 09 66 6f | 72 20 28 20 4e 3d 4c 65 | )....fo|r ( N=Le|
|00001e90| 76 65 6c 2e 4e 61 76 69 | 67 61 74 69 6f 6e 50 6f |vel.Navi|gationPo|
|00001ea0| 69 6e 74 4c 69 73 74 3b | 20 4e 21 3d 4e 6f 6e 65 |intList;| N!=None|
|00001eb0| 3b 20 4e 3d 4e 2e 4e 65 | 78 74 4e 61 76 69 67 61 |; N=N.Ne|xtNaviga|
|00001ec0| 74 69 6f 6e 50 6f 69 6e | 74 20 29 0d 0a 09 09 09 |tionPoin|t ).....|
|00001ed0| 69 66 20 28 20 4e 2e 49 | 73 41 28 27 44 65 66 65 |if ( N.I|sA('Defe|
|00001ee0| 6e 73 65 70 6f 69 6e 74 | 27 29 20 26 26 20 28 44 |nsepoint|') && (D|
|00001ef0| 65 66 65 6e 73 65 50 6f | 69 6e 74 28 4e 29 2e 46 |efensePo|int(N).F|
|00001f00| 6f 72 74 54 61 67 20 3d | 3d 20 46 2e 54 61 67 29 |ortTag =|= F.Tag)|
|00001f10| 20 29 0d 0a 09 09 09 7b | 0d 0a 09 09 09 09 69 66 | ).....{|......if|
|00001f20| 20 28 20 4e 2e 74 61 6b | 65 6e 20 29 0d 0a 09 09 | ( N.tak|en )....|
|00001f30| 09 09 09 66 6f 72 20 28 | 20 50 3d 4c 65 76 65 6c |...for (| P=Level|
|00001f40| 2e 50 61 77 6e 4c 69 73 | 74 3b 20 50 21 3d 4e 6f |.PawnLis|t; P!=No|
|00001f50| 6e 65 3b 20 50 3d 50 2e | 4e 65 78 74 50 61 77 6e |ne; P=P.|NextPawn|
|00001f60| 20 29 0d 0a 09 09 09 09 | 09 09 69 66 20 28 20 50 | )......|..if ( P|
|00001f70| 2e 49 73 41 28 27 42 6f | 74 27 29 20 26 26 20 42 |.IsA('Bo|t') && B|
|00001f80| 6f 74 28 50 29 2e 41 6d | 62 75 73 68 53 70 6f 74 |ot(P).Am|bushSpot|
|00001f90| 20 3d 3d 20 4e 20 29 0d | 0a 09 09 09 09 09 09 09 | == N ).|........|
|00001fa0| 42 6f 74 28 50 29 2e 41 | 6d 62 75 73 68 53 70 6f |Bot(P).A|mbushSpo|
|00001fb0| 74 20 3d 20 4e 6f 6e 65 | 3b 0d 0a 09 09 09 09 4e |t = None|;......N|
|00001fc0| 2e 74 61 6b 65 6e 20 3d | 20 74 72 75 65 3b 0d 0a |.taken =| true;..|
|00001fd0| 09 09 09 7d 0d 0a 0d 0a | 09 69 66 20 28 20 21 46 |...}....|.if ( !F|
|00001fe0| 2e 62 46 69 6e 61 6c 46 | 6f 72 74 20 29 0d 0a 09 |.bFinalF|ort )...|
|00001ff0| 7b 0d 0a 09 09 66 6f 72 | 20 28 20 69 3d 30 3b 20 |{....for| ( i=0; |
|00002000| 69 3c 28 6e 75 6d 46 6f | 72 74 73 20 2d 20 31 29 |i<(numFo|rts - 1)|
|00002010| 3b 20 69 2b 2b 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |; i++ ).|...{....|
|00002020| 09 69 66 20 28 20 46 6f | 72 74 5b 69 5d 20 3d 3d |.if ( Fo|rt[i] ==|
|00002030| 20 46 20 29 0d 0a 09 09 | 09 09 62 46 6f 75 6e 64 | F )....|..bFound|
|00002040| 20 3d 20 74 72 75 65 3b | 0d 0a 09 09 09 69 66 20 | = true;|.....if |
|00002050| 28 20 62 46 6f 75 6e 64 | 20 29 0d 0a 09 09 09 09 |( bFound| )......|
|00002060| 46 6f 72 74 5b 69 5d 20 | 3d 20 46 6f 72 74 5b 69 |Fort[i] |= Fort[i|
|00002070| 2b 31 5d 3b 0d 0a 09 09 | 7d 0d 0a 09 09 46 6f 72 |+1];....|}....For|
|00002080| 74 5b 6e 75 6d 46 6f 72 | 74 73 5d 20 3d 20 4e 6f |t[numFor|ts] = No|
|00002090| 6e 65 3b 0d 0a 09 09 6e | 75 6d 46 6f 72 74 73 2d |ne;....n|umForts-|
|000020a0| 2d 3b 0d 0a 09 7d 0d 0a | 09 69 66 20 28 20 46 2e |-;...}..|.if ( F.|
|000020b0| 62 46 69 6e 61 6c 46 6f | 72 74 20 7c 7c 20 28 6e |bFinalFo|rt || (n|
|000020c0| 75 6d 46 6f 72 74 73 20 | 3d 3d 20 30 29 20 29 0d |umForts |== 0) ).|
|000020d0| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 20 69 6e 73 74 |..{....i|f ( inst|
|000020e0| 69 67 61 74 6f 72 2e 62 | 49 73 50 6c 61 79 65 72 |igator.b|IsPlayer|
|000020f0| 20 29 0d 0a 09 09 09 69 | 6e 73 74 69 67 61 74 6f | ).....i|nstigato|
|00002100| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00002110| 69 6f 6e 49 6e 66 6f 2e | 53 63 6f 72 65 20 2b 3d |ionInfo.|Score +=|
|00002120| 20 31 30 30 3b 0d 0a 09 | 09 62 41 73 73 61 75 6c | 100;...|.bAssaul|
|00002130| 74 57 6f 6e 20 3d 20 74 | 72 75 65 3b 0d 0a 09 09 |tWon = t|rue;....|
|00002140| 45 6e 64 47 61 6d 65 28 | 22 41 73 73 61 75 6c 74 |EndGame(|"Assault|
|00002150| 20 73 75 63 63 65 65 64 | 65 64 21 22 29 3b 0d 0a | succeed|ed!");..|
|00002160| 09 7d 0d 0a 09 65 6c 73 | 65 0d 0a 09 7b 0d 0a 09 |.}...els|e...{...|
|00002170| 09 66 6f 72 20 28 20 50 | 3d 4c 65 76 65 6c 2e 50 |.for ( P|=Level.P|
|00002180| 61 77 6e 4c 69 73 74 3b | 20 50 21 3d 4e 6f 6e 65 |awnList;| P!=None|
|00002190| 3b 20 50 3d 50 2e 6e 65 | 78 74 50 61 77 6e 20 29 |; P=P.ne|xtPawn )|
|000021a0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 42 20 3d 20 42 6f |....{...|..B = Bo|
|000021b0| 74 28 50 29 3b 0d 0a 09 | 09 09 69 66 20 28 20 42 |t(P);...|..if ( B|
|000021c0| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 09 7b | != None| ).....{|
|000021d0| 0d 0a 09 09 09 09 69 66 | 20 28 20 28 42 6f 74 52 |......if| ( (BotR|
|000021e0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 28 42 |eplicati|onInfo(B|
|000021f0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00002200| 6f 6e 49 6e 66 6f 29 2e | 52 65 61 6c 4f 72 64 65 |onInfo).|RealOrde|
|00002210| 72 73 20 3d 3d 20 27 44 | 65 66 65 6e 64 27 29 20 |rs == 'D|efend') |
|00002220| 26 26 20 28 42 2e 4f 72 | 64 65 72 4f 62 6a 65 63 |&& (B.Or|derObjec|
|00002230| 74 20 3d 3d 20 46 29 20 | 29 0d 0a 09 09 09 09 7b |t == F) |)......{|
|00002240| 0d 0a 09 09 09 09 09 42 | 2e 53 65 74 4f 72 64 65 |.......B|.SetOrde|
|00002250| 72 73 28 42 6f 74 52 65 | 70 6c 69 63 61 74 69 6f |rs(BotRe|plicatio|
|00002260| 6e 49 6e 66 6f 28 42 2e | 50 6c 61 79 65 72 52 65 |nInfo(B.|PlayerRe|
|00002270| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 29 2e 52 |plicatio|nInfo).R|
|00002280| 65 61 6c 4f 72 64 65 72 | 73 2c 20 4e 6f 6e 65 2c |ealOrder|s, None,|
|00002290| 20 74 72 75 65 29 3b 0d | 0a 09 09 09 09 09 42 2e | true);.|......B.|
|000022a0| 4f 72 64 65 72 4f 62 6a | 65 63 74 20 3d 20 53 65 |OrderObj|ect = Se|
|000022b0| 74 44 65 66 65 6e 73 65 | 46 6f 72 28 42 6f 74 28 |tDefense|For(Bot(|
|000022c0| 50 29 29 3b 0d 0a 09 09 | 09 09 09 42 6f 74 52 65 |P));....|...BotRe|
|000022d0| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 28 42 2e |plicatio|nInfo(B.|
|000022e0| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|000022f0| 6e 49 6e 66 6f 29 2e 4f | 72 64 65 72 4f 62 6a 65 |nInfo).O|rderObje|
|00002300| 63 74 20 3d 20 42 2e 4f | 72 64 65 72 4f 62 6a 65 |ct = B.O|rderObje|
|00002310| 63 74 3b 0d 0a 09 09 09 | 09 7d 0d 0a 09 09 09 09 |ct;.....|.}......|
|00002320| 65 6c 73 65 0d 0a 09 09 | 09 09 09 42 2e 4b 69 6c |else....|...B.Kil|
|00002330| 6c 65 64 28 4e 6f 6e 65 | 2c 20 46 2c 20 27 27 29 |led(None|, F, '')|
|00002340| 3b 0d 0a 09 09 09 7d 0d | 0a 09 09 7d 0d 0a 09 7d |;.....}.|...}...}|
|00002350| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00002360| 4b 69 6c 6c 65 64 28 70 | 61 77 6e 20 6b 69 6c 6c |Killed(p|awn kill|
|00002370| 65 72 2c 20 70 61 77 6e | 20 4f 74 68 65 72 2c 20 |er, pawn| Other, |
|00002380| 6e 61 6d 65 20 64 61 6d | 61 67 65 54 79 70 65 29 |name dam|ageType)|
|00002390| 0d 0a 7b 0d 0a 09 53 75 | 70 65 72 2e 4b 69 6c 6c |..{...Su|per.Kill|
|000023a0| 65 64 28 6b 69 6c 6c 65 | 72 2c 20 4f 74 68 65 72 |ed(kille|r, Other|
|000023b0| 2c 20 64 61 6d 61 67 65 | 54 79 70 65 29 3b 0d 0a |, damage|Type);..|
|000023c0| 09 69 66 20 28 20 28 4f | 74 68 65 72 20 3d 3d 20 |.if ( (O|ther == |
|000023d0| 4c 65 61 64 65 72 5b 4f | 74 68 65 72 2e 50 6c 61 |Leader[O|ther.Pla|
|000023e0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|000023f0| 66 6f 2e 54 65 61 6d 5d | 29 20 26 26 20 4f 74 68 |fo.Team]|) && Oth|
|00002400| 65 72 2e 49 73 41 28 27 | 42 6f 74 27 29 20 29 0d |er.IsA('|Bot') ).|
|00002410| 0a 09 09 45 6c 65 63 74 | 4e 65 77 4c 65 61 64 65 |...Elect|NewLeade|
|00002420| 72 46 6f 72 28 42 6f 74 | 28 4f 74 68 65 72 29 29 |rFor(Bot|(Other))|
|00002430| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00002440| 20 62 6f 6f 6c 20 53 65 | 74 45 6e 64 43 61 6d 73 | bool Se|tEndCams|
|00002450| 28 73 74 72 69 6e 67 20 | 52 65 61 73 6f 6e 29 0d |(string |Reason).|
|00002460| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 70 61 77 6e 20 |.{...loc|al pawn |
|00002470| 50 3b 0d 0a 09 6c 6f 63 | 61 6c 20 50 6c 61 79 65 |P;...loc|al Playe|
|00002480| 72 50 61 77 6e 20 50 6c | 61 79 65 72 3b 0d 0a 09 |rPawn Pl|ayer;...|
|00002490| 6c 6f 63 61 6c 20 69 6e | 74 20 43 6f 6e 71 75 65 |local in|t Conque|
|000024a0| 72 54 69 6d 65 2c 20 4d | 69 6e 75 74 65 73 2c 20 |rTime, M|inutes, |
|000024b0| 53 65 63 6f 6e 64 73 3b | 0d 0a 09 6c 6f 63 61 6c |Seconds;|...local|
|000024c0| 20 73 74 72 69 6e 67 20 | 54 69 6d 65 52 65 73 75 | string |TimeResu|
|000024d0| 6c 74 3b 0d 0a 09 6c 6f | 63 61 6c 20 61 63 74 6f |lt;...lo|cal acto|
|000024e0| 72 20 41 3b 0d 0a 09 6c | 6f 63 61 6c 20 62 6f 6f |r A;...l|ocal boo|
|000024f0| 6c 20 62 54 69 65 47 61 | 6d 65 3b 0d 0a 0d 0a 09 |l bTieGa|me;.....|
|00002500| 47 61 6d 65 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |GameRepl|icationI|
|00002510| 6e 66 6f 2e 62 53 74 6f | 70 43 6f 75 6e 74 44 6f |nfo.bSto|pCountDo|
|00002520| 77 6e 20 3d 20 74 72 75 | 65 3b 0d 0a 09 45 6e 64 |wn = tru|e;...End|
|00002530| 54 69 6d 65 20 3d 20 4c | 65 76 65 6c 2e 54 69 6d |Time = L|evel.Tim|
|00002540| 65 53 65 63 6f 6e 64 73 | 20 2b 20 45 6e 64 43 61 |eSeconds| + EndCa|
|00002550| 6d 2e 46 61 64 65 4f 75 | 74 54 69 6d 65 3b 0d 0a |m.FadeOu|tTime;..|
|00002560| 09 69 66 20 28 20 62 41 | 73 73 61 75 6c 74 57 6f |.if ( bA|ssaultWo|
|00002570| 6e 20 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 20 |n )...{.|...if ( |
|00002580| 53 61 76 65 64 54 69 6d | 65 20 3e 20 30 20 29 0d |SavedTim|e > 0 ).|
|00002590| 0a 20 09 09 09 43 6f 6e | 71 75 65 72 54 69 6d 65 |. ...Con|querTime|
|000025a0| 20 3d 20 53 61 76 65 64 | 54 69 6d 65 20 2d 20 52 | = Saved|Time - R|
|000025b0| 65 6d 61 69 6e 69 6e 67 | 54 69 6d 65 3b 0d 0a 09 |emaining|Time;...|
|000025c0| 09 65 6c 73 65 0d 0a 20 | 09 09 09 43 6f 6e 71 75 |.else.. |...Conqu|
|000025d0| 65 72 54 69 6d 65 20 3d | 20 54 69 6d 65 4c 69 6d |erTime =| TimeLim|
|000025e0| 69 74 20 2a 20 36 30 20 | 2d 20 52 65 6d 61 69 6e |it * 60 |- Remain|
|000025f0| 69 6e 67 54 69 6d 65 3b | 0d 0a 09 09 4d 69 6e 75 |ingTime;|....Minu|
|00002600| 74 65 73 20 3d 20 43 6f | 6e 71 75 65 72 54 69 6d |tes = Co|nquerTim|
|00002610| 65 2f 36 30 3b 0d 0a 09 | 09 69 66 20 28 20 4d 69 |e/60;...|.if ( Mi|
|00002620| 6e 75 74 65 73 20 3e 20 | 30 20 29 0d 0a 09 09 09 |nutes > |0 ).....|
|00002630| 54 69 6d 65 52 65 73 75 | 6c 74 20 3d 20 73 74 72 |TimeResu|lt = str|
|00002640| 69 6e 67 28 4d 69 6e 75 | 74 65 73 29 24 22 3a 22 |ing(Minu|tes)$":"|
|00002650| 3b 0d 0a 09 09 65 6c 73 | 65 0d 0a 09 09 09 54 69 |;....els|e.....Ti|
|00002660| 6d 65 52 65 73 75 6c 74 | 20 3d 20 22 3a 22 3b 0d |meResult| = ":";.|
|00002670| 0a 09 09 53 65 63 6f 6e | 64 73 20 3d 20 43 6f 6e |...Secon|ds = Con|
|00002680| 71 75 65 72 54 69 6d 65 | 20 25 20 36 30 3b 0d 0a |querTime| % 60;..|
|00002690| 09 09 69 66 20 28 20 53 | 65 63 6f 6e 64 73 20 3d |..if ( S|econds =|
|000026a0| 3d 20 30 20 29 0d 0a 09 | 09 09 54 69 6d 65 52 65 |= 0 )...|..TimeRe|
|000026b0| 73 75 6c 74 20 3d 20 54 | 69 6d 65 52 65 73 75 6c |sult = T|imeResul|
|000026c0| 74 24 22 30 30 22 3b 0d | 0a 09 09 65 6c 73 65 20 |t$"00";.|...else |
|000026d0| 69 66 20 28 20 53 65 63 | 6f 6e 64 73 20 3c 20 31 |if ( Sec|onds < 1|
|000026e0| 30 20 29 0d 0a 09 09 09 | 54 69 6d 65 52 65 73 75 |0 ).....|TimeResu|
|000026f0| 6c 74 20 3d 20 54 69 6d | 65 52 65 73 75 6c 74 24 |lt = Tim|eResult$|
|00002700| 22 30 22 24 53 65 63 6f | 6e 64 73 3b 0d 0a 09 09 |"0"$Seco|nds;....|
|00002710| 65 6c 73 65 0d 0a 09 09 | 09 54 69 6d 65 52 65 73 |else....|.TimeRes|
|00002720| 75 6c 74 20 3d 20 54 69 | 6d 65 52 65 73 75 6c 74 |ult = Ti|meResult|
|00002730| 24 53 65 63 6f 6e 64 73 | 3b 0d 0a 09 09 47 61 6d |$Seconds|;....Gam|
|00002740| 65 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |eReplica|tionInfo|
|00002750| 2e 47 61 6d 65 45 6e 64 | 65 64 43 6f 6d 6d 65 6e |.GameEnd|edCommen|
|00002760| 74 73 20 3d 20 54 65 61 | 6d 50 72 65 66 69 78 40 |ts = Tea|mPrefix@|
|00002770| 41 74 74 61 63 6b 65 72 | 2e 54 65 61 6d 4e 61 6d |Attacker|.TeamNam|
|00002780| 65 40 47 61 6d 65 45 6e | 64 65 64 4d 65 73 73 61 |e@GameEn|dedMessa|
|00002790| 67 65 40 54 69 6d 65 52 | 65 73 75 6c 74 3b 0d 0a |ge@TimeR|esult;..|
|000027a0| 09 09 69 66 20 28 20 62 | 44 65 66 65 6e 73 65 53 |..if ( b|DefenseS|
|000027b0| 65 74 20 29 0d 0a 09 09 | 09 47 61 6d 65 52 65 70 |et )....|.GameRep|
|000027c0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 47 61 6d |lication|Info.Gam|
|000027d0| 65 45 6e 64 65 64 43 6f | 6d 6d 65 6e 74 73 20 3d |eEndedCo|mments =|
|000027e0| 20 47 61 6d 65 52 65 70 | 6c 69 63 61 74 69 6f 6e | GameRep|lication|
|000027f0| 49 6e 66 6f 2e 47 61 6d | 65 45 6e 64 65 64 43 6f |Info.Gam|eEndedCo|
|00002800| 6d 6d 65 6e 74 73 40 57 | 69 6e 4d 65 73 73 61 67 |mments@W|inMessag|
|00002810| 65 3b 0d 0a 09 09 41 74 | 74 61 63 6b 65 72 2e 53 |e;....At|tacker.S|
|00002820| 63 6f 72 65 20 2b 3d 20 | 31 3b 0d 0a 09 09 69 66 |core += |1;....if|
|00002830| 20 28 20 28 45 6e 64 43 | 61 6d 20 21 3d 20 4e 6f | ( (EndC|am != No|
|00002840| 6e 65 29 20 26 26 20 28 | 45 6e 64 43 61 6d 2e 45 |ne) && (|EndCam.E|
|00002850| 76 65 6e 74 20 21 3d 20 | 27 27 29 20 29 0d 0a 09 |vent != |'') )...|
|00002860| 09 09 46 6f 72 45 61 63 | 68 20 41 6c 6c 41 63 74 |..ForEac|h AllAct|
|00002870| 6f 72 73 28 63 6c 61 73 | 73 27 41 63 74 6f 72 27 |ors(clas|s'Actor'|
|00002880| 2c 20 41 2c 20 45 6e 64 | 43 61 6d 2e 45 76 65 6e |, A, End|Cam.Even|
|00002890| 74 29 0d 0a 09 09 09 09 | 41 2e 54 72 69 67 67 65 |t)......|A.Trigge|
|000028a0| 72 28 4e 6f 6e 65 2c 20 | 4e 6f 6e 65 29 3b 0d 0a |r(None, |None);..|
|000028b0| 09 7d 0d 0a 09 65 6c 73 | 65 0d 0a 09 7b 0d 0a 09 |.}...els|e...{...|
|000028c0| 09 47 61 6d 65 52 65 70 | 6c 69 63 61 74 69 6f 6e |.GameRep|lication|
|000028d0| 49 6e 66 6f 2e 47 61 6d | 65 45 6e 64 65 64 43 6f |Info.Gam|eEndedCo|
|000028e0| 6d 6d 65 6e 74 73 20 3d | 20 54 65 61 6d 50 72 65 |mments =| TeamPre|
|000028f0| 66 69 78 40 44 65 66 65 | 6e 64 65 72 2e 54 65 61 |fix@Defe|nder.Tea|
|00002900| 6d 4e 61 6d 65 40 44 65 | 66 65 6e 64 65 72 53 75 |mName@De|fenderSu|
|00002910| 63 63 65 73 73 3b 0d 0a | 09 09 69 66 20 28 20 62 |ccess;..|..if ( b|
|00002920| 44 65 66 65 6e 73 65 53 | 65 74 20 29 0d 0a 09 09 |DefenseS|et )....|
|00002930| 7b 0d 0a 09 09 09 62 54 | 69 65 47 61 6d 65 20 3d |{.....bT|ieGame =|
|00002940| 20 62 54 69 65 50 61 72 | 74 4f 6e 65 3b 0d 0a 09 | bTiePar|tOne;...|
|00002950| 09 09 69 66 20 28 20 62 | 54 69 65 50 61 72 74 4f |..if ( b|TiePartO|
|00002960| 6e 65 20 29 0d 0a 09 09 | 09 09 47 61 6d 65 52 65 |ne )....|..GameRe|
|00002970| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 47 61 |plicatio|nInfo.Ga|
|00002980| 6d 65 45 6e 64 65 64 43 | 6f 6d 6d 65 6e 74 73 20 |meEndedC|omments |
|00002990| 3d 20 47 61 6d 65 52 65 | 70 6c 69 63 61 74 69 6f |= GameRe|plicatio|
|000029a0| 6e 49 6e 66 6f 2e 47 61 | 6d 65 45 6e 64 65 64 43 |nInfo.Ga|meEndedC|
|000029b0| 6f 6d 6d 65 6e 74 73 40 | 54 69 65 4d 65 73 73 61 |omments@|TieMessa|
|000029c0| 67 65 3b 0d 0a 09 09 09 | 65 6c 73 65 0d 0a 09 09 |ge;.....|else....|
|000029d0| 09 09 47 61 6d 65 52 65 | 70 6c 69 63 61 74 69 6f |..GameRe|plicatio|
|000029e0| 6e 49 6e 66 6f 2e 47 61 | 6d 65 45 6e 64 65 64 43 |nInfo.Ga|meEndedC|
|000029f0| 6f 6d 6d 65 6e 74 73 20 | 3d 20 47 61 6d 65 52 65 |omments |= GameRe|
|00002a00| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 47 61 |plicatio|nInfo.Ga|
|00002a10| 6d 65 45 6e 64 65 64 43 | 6f 6d 6d 65 6e 74 73 40 |meEndedC|omments@|
|00002a20| 57 69 6e 4d 65 73 73 61 | 67 65 3b 0d 0a 09 09 7d |WinMessa|ge;....}|
|00002a30| 0d 0a 09 09 65 6c 73 65 | 0d 0a 09 09 7b 0d 0a 09 |....else|....{...|
|00002a40| 09 09 62 54 69 65 50 61 | 72 74 4f 6e 65 20 3d 20 |..bTiePa|rtOne = |
|00002a50| 74 72 75 65 3b 0d 0a 09 | 09 09 47 61 6d 65 52 65 |true;...|..GameRe|
|00002a60| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 47 61 |plicatio|nInfo.Ga|
|00002a70| 6d 65 45 6e 64 65 64 43 | 6f 6d 6d 65 6e 74 73 20 |meEndedC|omments |
|00002a80| 3d 20 47 61 6d 65 52 65 | 70 6c 69 63 61 74 69 6f |= GameRe|plicatio|
|00002a90| 6e 49 6e 66 6f 2e 47 61 | 6d 65 45 6e 64 65 64 43 |nInfo.Ga|meEndedC|
|00002aa0| 6f 6d 6d 65 6e 74 73 24 | 22 21 22 3b 0d 0a 09 09 |omments$|"!";....|
|00002ab0| 7d 0d 0a 09 09 44 65 66 | 65 6e 64 65 72 2e 53 63 |}....Def|ender.Sc|
|00002ac0| 6f 72 65 20 2b 3d 20 31 | 3b 0d 0a 09 7d 0d 0a 0d |ore += 1|;...}...|
|00002ad0| 0a 09 66 6f 72 20 28 20 | 50 3d 4c 65 76 65 6c 2e |..for ( |P=Level.|
|00002ae0| 50 61 77 6e 4c 69 73 74 | 3b 20 50 21 3d 4e 6f 6e |PawnList|; P!=Non|
|00002af0| 65 3b 20 50 3d 50 2e 6e | 65 78 74 50 61 77 6e 20 |e; P=P.n|extPawn |
|00002b00| 29 0d 0a 09 7b 0d 0a 09 | 09 50 6c 61 79 65 72 20 |)...{...|.Player |
|00002b10| 3d 20 50 6c 61 79 65 72 | 70 61 77 6e 28 50 29 3b |= Player|pawn(P);|
|00002b20| 0d 0a 09 09 69 66 20 28 | 20 50 6c 61 79 65 72 20 |....if (| Player |
|00002b30| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 7b 0d 0a |!= None |)....{..|
|00002b40| 09 09 09 69 66 20 28 20 | 62 41 73 73 61 75 6c 74 |...if ( |bAssault|
|00002b50| 57 6f 6e 20 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 |Won )...|..{.....|
|00002b60| 09 50 6c 61 79 65 72 2e | 56 69 65 77 54 61 72 67 |.Player.|ViewTarg|
|00002b70| 65 74 20 3d 20 45 6e 64 | 43 61 6d 3b 0d 0a 09 09 |et = End|Cam;....|
|00002b80| 09 09 50 6c 61 79 65 72 | 2e 62 42 65 68 69 6e 64 |..Player|.bBehind|
|00002b90| 56 69 65 77 20 3d 20 66 | 61 6c 73 65 3b 0d 0a 09 |View = f|alse;...|
|00002ba0| 09 09 09 50 6c 61 79 65 | 72 2e 62 46 69 78 65 64 |...Playe|r.bFixed|
|00002bb0| 43 61 6d 65 72 61 20 3d | 20 74 72 75 65 3b 0d 0a |Camera =| true;..|
|00002bc0| 09 09 09 09 69 66 20 28 | 20 21 62 54 75 74 6f 72 |....if (| !bTutor|
|00002bd0| 69 61 6c 47 61 6d 65 20 | 26 26 20 21 62 54 69 65 |ialGame |&& !bTie|
|00002be0| 47 61 6d 65 20 26 26 20 | 62 44 65 66 65 6e 73 65 |Game && |bDefense|
|00002bf0| 53 65 74 20 29 0d 0a 09 | 09 09 09 09 50 6c 61 79 |Set )...|....Play|
|00002c00| 57 69 6e 4d 65 73 73 61 | 67 65 28 50 6c 61 79 65 |WinMessa|ge(Playe|
|00002c10| 72 2c 20 28 50 6c 61 79 | 65 72 2e 50 6c 61 79 65 |r, (Play|er.Playe|
|00002c20| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00002c30| 2e 54 65 61 6d 20 3d 3d | 20 41 74 74 61 63 6b 65 |.Team ==| Attacke|
|00002c40| 72 2e 54 65 61 6d 49 6e | 64 65 78 29 29 3b 0d 0a |r.TeamIn|dex));..|
|00002c50| 09 09 09 7d 0d 0a 09 09 | 09 65 6c 73 65 0d 0a 09 |...}....|.else...|
|00002c60| 09 09 7b 0d 0a 09 09 09 | 09 69 66 20 28 20 21 62 |..{.....|.if ( !b|
|00002c70| 54 75 74 6f 72 69 61 6c | 47 61 6d 65 20 26 26 20 |Tutorial|Game && |
|00002c80| 21 62 54 69 65 47 61 6d | 65 20 26 26 20 62 44 65 |!bTieGam|e && bDe|
|00002c90| 66 65 6e 73 65 53 65 74 | 29 0d 0a 09 09 09 09 09 |fenseSet|).......|
|00002ca0| 50 6c 61 79 57 69 6e 4d | 65 73 73 61 67 65 28 50 |PlayWinM|essage(P|
|00002cb0| 6c 61 79 65 72 2c 20 28 | 50 6c 61 79 65 72 2e 50 |layer, (|Player.P|
|00002cc0| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00002cd0| 49 6e 66 6f 2e 54 65 61 | 6d 20 3d 3d 20 44 65 66 |Info.Tea|m == Def|
|00002ce0| 65 6e 64 65 72 2e 54 65 | 61 6d 49 6e 64 65 78 29 |ender.Te|amIndex)|
|00002cf0| 29 3b 0d 0a 09 09 09 09 | 50 6c 61 79 65 72 2e 62 |);......|Player.b|
|00002d00| 42 65 68 69 6e 64 56 69 | 65 77 20 3d 20 74 72 75 |BehindVi|ew = tru|
|00002d10| 65 3b 0d 0a 09 09 09 7d | 0d 0a 09 09 09 50 6c 61 |e;.....}|.....Pla|
|00002d20| 79 65 72 2e 43 6c 69 65 | 6e 74 47 61 6d 65 45 6e |yer.Clie|ntGameEn|
|00002d30| 64 65 64 28 29 3b 0d 0a | 09 09 7d 0d 0a 09 09 50 |ded();..|..}....P|
|00002d40| 2e 47 6f 74 6f 53 74 61 | 74 65 28 27 47 61 6d 65 |.GotoSta|te('Game|
|00002d50| 45 6e 64 65 64 27 29 3b | 0d 0a 09 7d 0d 0a 09 43 |Ended');|...}...C|
|00002d60| 61 6c 63 45 6e 64 53 74 | 61 74 73 28 29 3b 0d 0a |alcEndSt|ats();..|
|00002d70| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 7d |.return |true;..}|
|00002d80| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 43 61 6c |....func|tion Cal|
|00002d90| 63 45 6e 64 53 74 61 74 | 73 28 29 0d 0a 7b 0d 0a |cEndStat|s()..{..|
|00002da0| 09 45 6e 64 53 74 61 74 | 73 43 6c 61 73 73 2e 44 |.EndStat|sClass.D|
|00002db0| 65 66 61 75 6c 74 2e 54 | 6f 74 61 6c 47 61 6d 65 |efault.T|otalGame|
|00002dc0| 73 2b 2b 3b 0d 0a 09 45 | 6e 64 53 74 61 74 73 43 |s++;...E|ndStatsC|
|00002dd0| 6c 61 73 73 2e 53 74 61 | 74 69 63 2e 53 74 61 74 |lass.Sta|tic.Stat|
|00002de0| 69 63 53 61 76 65 43 6f | 6e 66 69 67 28 29 3b 0d |icSaveCo|nfig();.|
|00002df0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 62 |.}....fu|nction b|
|00002e00| 6f 6f 6c 20 42 65 73 74 | 46 6f 72 74 46 6f 72 28 |ool Best|FortFor(|
|00002e10| 42 6f 74 20 61 42 6f 74 | 2c 20 46 6f 72 74 53 74 |Bot aBot|, FortSt|
|00002e20| 61 6e 64 61 72 64 20 6f | 6c 64 46 6f 72 74 2c 20 |andard o|ldFort, |
|00002e30| 46 6f 72 74 53 74 61 6e | 64 61 72 64 20 63 75 72 |FortStan|dard cur|
|00002e40| 72 65 6e 74 46 6f 72 74 | 29 0d 0a 7b 0d 0a 09 69 |rentFort|)..{...i|
|00002e50| 66 20 28 20 28 63 75 72 | 72 65 6e 74 46 6f 72 74 |f ( (cur|rentFort|
|00002e60| 2e 44 65 66 65 6e 73 65 | 50 72 69 6f 72 69 74 79 |.Defense|Priority|
|00002e70| 20 3e 20 6f 6c 64 46 6f | 72 74 2e 44 65 66 65 6e | > oldFo|rt.Defen|
|00002e80| 73 65 50 72 69 6f 72 69 | 74 79 29 0d 0a 09 09 7c |sePriori|ty)....||
|00002e90| 7c 20 28 28 63 75 72 72 | 65 6e 74 46 6f 72 74 2e || ((curr|entFort.|
|00002ea0| 44 65 66 65 6e 73 65 50 | 72 69 6f 72 69 74 79 20 |DefenseP|riority |
|00002eb0| 3d 3d 20 6f 6c 64 46 6f | 72 74 2e 44 65 66 65 6e |== oldFo|rt.Defen|
|00002ec0| 73 65 50 72 69 6f 72 69 | 74 79 29 0d 0a 09 09 20 |sePriori|ty).... |
|00002ed0| 20 20 26 26 20 28 28 63 | 75 72 72 65 6e 74 46 6f | && ((c|urrentFo|
|00002ee0| 72 74 2e 44 65 66 65 6e | 64 65 72 20 3d 3d 20 4e |rt.Defen|der == N|
|00002ef0| 6f 6e 65 29 20 7c 7c 20 | 28 63 75 72 72 65 6e 74 |one) || |(current|
|00002f00| 46 6f 72 74 2e 44 65 66 | 65 6e 64 65 72 20 3d 3d |Fort.Def|ender ==|
|00002f10| 20 61 42 6f 74 29 0d 0a | 09 09 09 09 7c 7c 20 28 | aBot)..|....|| (|
|00002f20| 28 6f 6c 64 46 6f 72 74 | 2e 44 65 66 65 6e 64 65 |(oldFort|.Defende|
|00002f30| 72 20 21 3d 20 4e 6f 6e | 65 29 20 26 26 20 28 6f |r != Non|e) && (o|
|00002f40| 6c 64 46 6f 72 74 2e 44 | 65 66 65 6e 64 65 72 20 |ldFort.D|efender |
|00002f50| 21 3d 20 61 42 6f 74 29 | 20 26 26 20 28 46 52 61 |!= aBot)| && (FRa|
|00002f60| 6e 64 28 29 20 3c 20 30 | 2e 35 29 29 29 29 20 29 |nd() < 0|.5)))) )|
|00002f70| 0d 0a 09 7b 0d 0a 09 09 | 69 66 20 28 20 6f 6c 64 |...{....|if ( old|
|00002f80| 46 6f 72 74 2e 44 65 66 | 65 6e 64 65 72 20 3d 3d |Fort.Def|ender ==|
|00002f90| 20 61 42 6f 74 20 29 0d | 0a 09 09 09 6f 6c 64 46 | aBot ).|....oldF|
|00002fa0| 6f 72 74 2e 44 65 66 65 | 6e 64 65 72 20 3d 20 4e |ort.Defe|nder = N|
|00002fb0| 6f 6e 65 3b 0d 0a 09 09 | 72 65 74 75 72 6e 20 74 |one;....|return t|
|00002fc0| 72 75 65 3b 0d 0a 09 7d | 0d 0a 09 0d 0a 09 72 65 |rue;...}|......re|
|00002fd0| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 0a 7d 0d 0a |turn fal|se;..}..|
|00002fe0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 46 6f 72 74 53 |..functi|on FortS|
|00002ff0| 74 61 6e 64 61 72 64 20 | 41 74 74 61 63 6b 46 6f |tandard |AttackFo|
|00003000| 72 74 28 42 6f 74 20 61 | 42 6f 74 2c 20 6f 75 74 |rt(Bot a|Bot, out|
|00003010| 20 62 79 74 65 20 62 4d | 75 6c 74 69 53 61 6d 65 | byte bM|ultiSame|
|00003020| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 |)..{...l|ocal int|
|00003030| 20 69 3b 0d 0a 09 0d 0a | 09 42 65 73 74 46 6f 72 | i;.....|.BestFor|
|00003040| 74 20 3d 20 46 6f 72 74 | 5b 30 5d 3b 0d 0a 09 62 |t = Fort|[0];...b|
|00003050| 4d 75 6c 74 69 53 61 6d | 65 20 3d 20 30 3b 0d 0a |MultiSam|e = 0;..|
|00003060| 09 66 6f 72 20 28 20 69 | 3d 31 3b 20 69 3c 6e 75 |.for ( i|=1; i<nu|
|00003070| 6d 46 6f 72 74 73 3b 20 | 69 2b 2b 20 29 0d 0a 09 |mForts; |i++ )...|
|00003080| 7b 0d 0a 09 09 69 66 20 | 28 20 42 65 73 74 46 6f |{....if |( BestFo|
|00003090| 72 74 2e 44 65 66 65 6e | 73 65 50 72 69 6f 72 69 |rt.Defen|sePriori|
|000030a0| 74 79 20 3c 20 46 6f 72 | 74 5b 69 5d 2e 44 65 66 |ty < For|t[i].Def|
|000030b0| 65 6e 73 65 50 72 69 6f | 72 69 74 79 20 29 0d 0a |ensePrio|rity )..|
|000030c0| 09 09 09 42 65 73 74 46 | 6f 72 74 20 3d 20 46 6f |...BestF|ort = Fo|
|000030d0| 72 74 5b 69 5d 3b 0d 0a | 09 09 65 6c 73 65 20 69 |rt[i];..|..else i|
|000030e0| 66 20 28 20 42 65 73 74 | 46 6f 72 74 2e 44 65 66 |f ( Best|Fort.Def|
|000030f0| 65 6e 73 65 50 72 69 6f | 72 69 74 79 20 3d 3d 20 |ensePrio|rity == |
|00003100| 46 6f 72 74 5b 69 5d 2e | 44 65 66 65 6e 73 65 50 |Fort[i].|DefenseP|
|00003110| 72 69 6f 72 69 74 79 20 | 29 0d 0a 09 09 7b 0d 0a |riority |)....{..|
|00003120| 09 09 09 69 66 20 28 20 | 61 42 6f 74 2e 4c 69 6e |...if ( |aBot.Lin|
|00003130| 65 4f 66 53 69 67 68 74 | 54 6f 28 46 6f 72 74 5b |eOfSight|To(Fort[|
|00003140| 69 5d 29 20 29 0d 0a 09 | 09 09 09 42 65 73 74 46 |i]) )...|...BestF|
|00003150| 6f 72 74 20 3d 20 46 6f | 72 74 5b 69 5d 3b 0d 0a |ort = Fo|rt[i];..|
|00003160| 09 09 09 62 4d 75 6c 74 | 69 53 61 6d 65 20 3d 20 |...bMult|iSame = |
|00003170| 31 3b 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 0d 0a 09 |1;....}.|..}.....|
|00003180| 72 65 74 75 72 6e 20 42 | 65 73 74 46 6f 72 74 3b |return B|estFort;|
|00003190| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|000031a0| 41 63 74 6f 72 20 53 65 | 74 44 65 66 65 6e 73 65 |Actor Se|tDefense|
|000031b0| 46 6f 72 28 42 6f 74 20 | 61 42 6f 74 29 0d 0a 7b |For(Bot |aBot)..{|
|000031c0| 0d 0a 09 6c 6f 63 61 6c | 20 69 6e 74 20 69 2c 20 |...local| int i, |
|000031d0| 62 65 73 74 3b 0d 0a 09 | 6c 6f 63 61 6c 20 46 6f |best;...|local Fo|
|000031e0| 72 74 53 74 61 6e 64 61 | 72 64 20 46 3b 0d 0a 0d |rtStanda|rd F;...|
|000031f0| 0a 09 69 66 20 28 20 61 | 42 6f 74 2e 50 6c 61 79 |..if ( a|Bot.Play|
|00003200| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00003210| 6f 2e 54 65 61 6d 20 21 | 3d 20 44 65 66 65 6e 64 |o.Team !|= Defend|
|00003220| 65 72 2e 54 65 61 6d 49 | 6e 64 65 78 20 29 0d 0a |er.TeamI|ndex )..|
|00003230| 09 7b 0d 0a 09 09 61 42 | 6f 74 2e 53 65 74 4f 72 |.{....aB|ot.SetOr|
|00003240| 64 65 72 73 28 27 41 74 | 74 61 63 6b 27 2c 20 4e |ders('At|tack', N|
|00003250| 6f 6e 65 29 3b 09 0d 0a | 09 09 72 65 74 75 72 6e |one);...|..return|
|00003260| 20 4e 6f 6e 65 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 66 | None;..|.}.....f|
|00003270| 6f 72 20 28 20 69 3d 30 | 3b 20 69 3c 6e 75 6d 46 |or ( i=0|; i<numF|
|00003280| 6f 72 74 73 3b 20 69 2b | 2b 20 29 0d 0a 09 09 69 |orts; i+|+ )....i|
|00003290| 66 20 28 20 28 46 20 3d | 3d 20 4e 6f 6e 65 29 20 |f ( (F =|= None) |
|000032a0| 7c 7c 20 42 65 73 74 46 | 6f 72 74 46 6f 72 28 61 ||| BestF|ortFor(a|
|000032b0| 42 6f 74 2c 20 46 2c 20 | 46 6f 72 74 5b 69 5d 29 |Bot, F, |Fort[i])|
|000032c0| 20 20 29 0d 0a 09 09 09 | 46 20 3d 20 46 6f 72 74 | ).....|F = Fort|
|000032d0| 5b 69 5d 3b 0d 0a 09 0d | 0a 09 69 66 20 28 20 46 |[i];....|..if ( F|
|000032e0| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 46 2e | != None| )....F.|
|000032f0| 44 65 66 65 6e 64 65 72 | 20 3d 20 61 42 6f 74 3b |Defender| = aBot;|
|00003300| 0d 0a 09 65 6c 73 65 0d | 0a 09 09 61 42 6f 74 2e |...else.|...aBot.|
|00003310| 53 65 74 4f 72 64 65 72 | 73 28 27 46 72 65 65 4c |SetOrder|s('FreeL|
|00003320| 61 6e 63 65 27 2c 20 4e | 6f 6e 65 2c 20 74 72 75 |ance', N|one, tru|
|00003330| 65 29 3b 09 09 09 09 0d | 0a 09 72 65 74 75 72 6e |e);.....|..return|
|00003340| 20 46 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 | F;..}..|..functi|
|00003350| 6f 6e 20 62 6f 6f 6c 20 | 46 69 6e 64 50 61 74 68 |on bool |FindPath|
|00003360| 54 6f 46 6f 72 74 46 6f | 72 28 42 6f 74 20 61 42 |ToFortFo|r(Bot aB|
|00003370| 6f 74 2c 20 41 63 74 6f | 72 20 44 65 73 74 29 0d |ot, Acto|r Dest).|
|00003380| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 46 6f 72 74 53 |.{...loc|al FortS|
|00003390| 74 61 6e 64 61 72 64 20 | 46 3b 0d 0a 0d 0a 09 69 |tandard |F;.....i|
|000033a0| 66 20 28 20 44 65 73 74 | 20 3d 3d 20 4e 6f 6e 65 |f ( Dest| == None|
|000033b0| 20 29 0d 0a 09 7b 0d 0a | 09 09 61 42 6f 74 2e 53 | )...{..|..aBot.S|
|000033c0| 65 74 4f 72 64 65 72 73 | 28 27 46 72 65 65 6c 61 |etOrders|('Freela|
|000033d0| 6e 63 65 27 2c 20 4e 6f | 6e 65 2c 20 74 72 75 65 |nce', No|ne, true|
|000033e0| 29 3b 0d 0a 09 09 72 65 | 74 75 72 6e 20 66 61 6c |);....re|turn fal|
|000033f0| 73 65 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 46 20 3d 20 |se;...}.|....F = |
|00003400| 46 6f 72 74 53 74 61 6e | 64 61 72 64 28 44 65 73 |FortStan|dard(Des|
|00003410| 74 29 3b 0d 0a 09 69 66 | 20 28 20 28 46 20 21 3d |t);...if| ( (F !=|
|00003420| 20 4e 6f 6e 65 29 20 26 | 26 20 28 46 2e 4e 65 61 | None) &|& (F.Nea|
|00003430| 72 65 73 74 50 61 74 68 | 20 21 3d 20 4e 6f 6e 65 |restPath| != None|
|00003440| 29 20 29 0d 0a 09 09 61 | 42 6f 74 2e 4d 6f 76 65 |) )....a|Bot.Move|
|00003450| 54 61 72 67 65 74 20 3d | 20 61 42 6f 74 2e 46 69 |Target =| aBot.Fi|
|00003460| 6e 64 50 61 74 68 54 6f | 77 61 72 64 28 46 2e 4e |ndPathTo|ward(F.N|
|00003470| 65 61 72 65 73 74 50 61 | 74 68 29 3b 0d 0a 09 65 |earestPa|th);...e|
|00003480| 6c 73 65 0d 0a 09 09 61 | 42 6f 74 2e 4d 6f 76 65 |lse....a|Bot.Move|
|00003490| 54 61 72 67 65 74 20 3d | 20 61 42 6f 74 2e 46 69 |Target =| aBot.Fi|
|000034a0| 6e 64 50 61 74 68 54 6f | 77 61 72 64 28 44 65 73 |ndPathTo|ward(Des|
|000034b0| 74 29 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 61 42 6f |t);.....|if ( aBo|
|000034c0| 74 2e 4d 6f 76 65 54 61 | 72 67 65 74 20 3d 3d 20 |t.MoveTa|rget == |
|000034d0| 4e 6f 6e 65 20 29 0d 0a | 09 7b 0d 0a 09 09 61 42 |None )..|.{....aB|
|000034e0| 6f 74 2e 62 53 74 61 79 | 46 72 65 65 6c 61 6e 63 |ot.bStay|Freelanc|
|000034f0| 65 20 3d 20 74 72 75 65 | 3b 0d 0a 09 09 61 42 6f |e = true|;....aBo|
|00003500| 74 2e 4f 72 64 65 72 73 | 20 3d 20 27 46 72 65 65 |t.Orders| = 'Free|
|00003510| 4c 61 6e 63 65 27 3b 0d | 0a 09 09 69 66 20 28 20 |Lance';.|...if ( |
|00003520| 61 42 6f 74 2e 62 56 65 | 72 62 6f 73 65 20 29 0d |aBot.bVe|rbose ).|
|00003530| 0a 09 09 09 6c 6f 67 28 | 61 42 6f 74 2e 50 6c 61 |....log(|aBot.Pla|
|00003540| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00003550| 66 6f 2e 50 6c 61 79 65 | 72 4e 61 6d 65 24 22 20 |fo.Playe|rName$" |
|00003560| 66 72 65 65 6c 61 6e 63 | 65 20 62 65 63 61 75 73 |freelanc|e becaus|
|00003570| 65 20 6e 6f 20 70 61 74 | 68 20 74 6f 20 66 6f 72 |e no pat|h to for|
|00003580| 74 20 22 24 46 24 22 20 | 66 72 6f 6d 20 22 24 61 |t "$F$" |from "$a|
|00003590| 42 6f 74 2e 4c 6f 63 61 | 74 69 6f 6e 29 3b 0d 0a |Bot.Loca|tion);..|
|000035a0| 09 09 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |..return| false;.|
|000035b0| 0a 09 7d 0d 0a 09 65 6c | 73 65 0d 0a 09 7b 0d 0a |..}...el|se...{..|
|000035c0| 09 09 53 65 74 41 74 74 | 72 61 63 74 69 6f 6e 53 |..SetAtt|ractionS|
|000035d0| 74 61 74 65 46 6f 72 28 | 61 42 6f 74 29 3b 0d 0a |tateFor(|aBot);..|
|000035e0| 09 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 0a |..return| true;..|
|000035f0| 09 7d 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |.}..}...|.functio|
|00003600| 6e 20 62 6f 6f 6c 20 53 | 65 6e 64 42 6f 74 54 6f |n bool S|endBotTo|
|00003610| 47 6f 61 6c 28 42 6f 74 | 20 61 42 6f 74 29 0d 0a |Goal(Bot| aBot)..|
|00003620| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 62 79 74 65 20 62 |{...loca|l byte b|
|00003630| 4d 75 6c 74 69 53 61 6d | 65 3b 0d 0a 0d 0a 09 72 |MultiSam|e;.....r|
|00003640| 65 74 75 72 6e 20 46 69 | 6e 64 50 61 74 68 54 6f |eturn Fi|ndPathTo|
|00003650| 46 6f 72 74 46 6f 72 28 | 61 42 6f 74 2c 20 41 74 |FortFor(|aBot, At|
|00003660| 74 61 63 6b 46 6f 72 74 | 28 61 42 6f 74 2c 62 4d |tackFort|(aBot,bM|
|00003670| 75 6c 74 69 53 61 6d 65 | 29 29 3b 0d 0a 7d 0d 0a |ultiSame|));..}..|
|00003680| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|00003690| 41 74 74 61 63 6b 4f 6e | 6c 79 4c 6f 63 61 6c 46 |AttackOn|lyLocalF|
|000036a0| 6f 72 74 28 42 6f 74 20 | 61 42 6f 74 29 0d 0a 7b |ort(Bot |aBot)..{|
|000036b0| 0d 0a 09 6c 6f 63 61 6c | 20 46 6f 72 74 53 74 61 |...local| FortSta|
|000036c0| 6e 64 61 72 64 20 46 3b | 0d 0a 09 6c 6f 63 61 6c |ndard F;|...local|
|000036d0| 20 62 6f 6f 6c 20 62 56 | 69 73 69 62 6c 65 2c 20 | bool bV|isible, |
|000036e0| 62 50 72 65 73 73 4f 6e | 3b 0d 0a 09 6c 6f 63 61 |bPressOn|;...loca|
|000036f0| 6c 20 62 79 74 65 20 62 | 4d 75 6c 74 69 53 61 6d |l byte b|MultiSam|
|00003700| 65 3b 0d 0a 09 6c 6f 63 | 61 6c 20 66 6c 6f 61 74 |e;...loc|al float|
|00003710| 20 64 69 73 74 3b 0d 0a | 0d 0a 09 46 20 3d 20 41 | dist;..|...F = A|
|00003720| 74 74 61 63 6b 46 6f 72 | 74 28 61 42 6f 74 2c 62 |ttackFor|t(aBot,b|
|00003730| 4d 75 6c 74 69 53 61 6d | 65 29 3b 0d 0a 09 69 66 |MultiSam|e);...if|
|00003740| 20 28 20 46 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a | ( F != |None )..|
|00003750| 09 7b 0d 0a 09 09 62 50 | 72 65 73 73 4f 6e 20 3d |.{....bP|ressOn =|
|00003760| 20 28 20 21 4c 65 61 64 | 65 72 5b 61 42 6f 74 2e | ( !Lead|er[aBot.|
|00003770| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00003780| 6e 49 6e 66 6f 2e 54 65 | 61 6d 5d 2e 49 73 41 28 |nInfo.Te|am].IsA(|
|00003790| 27 50 6c 61 79 65 72 50 | 61 77 6e 27 29 0d 0a 09 |'PlayerP|awn')...|
|000037a0| 09 09 09 09 7c 7c 20 61 | 42 6f 74 2e 52 65 67 69 |....|| a|Bot.Regi|
|000037b0| 6f 6e 2e 5a 6f 6e 65 2e | 62 57 61 74 65 72 5a 6f |on.Zone.|bWaterZo|
|000037c0| 6e 65 0d 0a 09 09 09 09 | 09 7c 7c 20 28 4c 65 61 |ne......|.|| (Lea|
|000037d0| 64 65 72 5b 61 42 6f 74 | 2e 50 6c 61 79 65 72 52 |der[aBot|.PlayerR|
|000037e0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|000037f0| 65 61 6d 5d 2e 48 65 61 | 6c 74 68 20 3c 3d 20 30 |eam].Hea|lth <= 0|
|00003800| 29 0d 0a 09 09 09 09 09 | 7c 7c 20 28 28 56 53 69 |).......||| ((VSi|
|00003810| 7a 65 28 4c 65 61 64 65 | 72 5b 61 42 6f 74 2e 50 |ze(Leade|r[aBot.P|
|00003820| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00003830| 49 6e 66 6f 2e 54 65 61 | 6d 5d 2e 4c 6f 63 61 74 |Info.Tea|m].Locat|
|00003840| 69 6f 6e 20 2d 20 46 2e | 4c 6f 63 61 74 69 6f 6e |ion - F.|Location|
|00003850| 29 20 3c 20 31 35 30 30 | 29 0d 0a 09 09 09 09 09 |) < 1500|).......|
|00003860| 09 26 26 20 4c 65 61 64 | 65 72 5b 61 42 6f 74 2e |.&& Lead|er[aBot.|
|00003870| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00003880| 6e 49 6e 66 6f 2e 54 65 | 61 6d 5d 2e 4c 69 6e 65 |nInfo.Te|am].Line|
|00003890| 4f 66 53 69 67 68 74 54 | 6f 28 46 29 29 0d 0a 09 |OfSightT|o(F))...|
|000038a0| 09 09 09 09 7c 7c 20 28 | 28 61 42 6f 74 2e 45 6e |....|| (|(aBot.En|
|000038b0| 65 6d 79 20 21 3d 20 4e | 6f 6e 65 29 20 26 26 20 |emy != N|one) && |
|000038c0| 28 4c 65 76 65 6c 2e 54 | 69 6d 65 53 65 63 6f 6e |(Level.T|imeSecon|
|000038d0| 64 73 20 2d 20 61 42 6f | 74 2e 4c 61 73 74 53 65 |ds - aBo|t.LastSe|
|000038e0| 65 6e 54 69 6d 65 20 3c | 20 31 2e 35 29 29 20 29 |enTime <| 1.5)) )|
|000038f0| 3b 0d 0a 0d 0a 09 09 64 | 69 73 74 20 3d 20 56 53 |;......d|ist = VS|
|00003900| 69 7a 65 28 61 42 6f 74 | 2e 4c 6f 63 61 74 69 6f |ize(aBot|.Locatio|
|00003910| 6e 20 2d 20 46 2e 4c 6f | 63 61 74 69 6f 6e 29 3b |n - F.Lo|cation);|
|00003920| 0d 0a 09 09 69 66 20 28 | 20 46 2e 62 54 72 69 67 |....if (| F.bTrig|
|00003930| 67 65 72 4f 6e 6c 79 20 | 29 0d 0a 09 09 7b 0d 0a |gerOnly |)....{..|
|00003940| 09 09 09 69 66 20 28 20 | 28 62 4d 75 6c 74 69 53 |...if ( |(bMultiS|
|00003950| 61 6d 65 20 3d 3d 20 31 | 29 20 7c 7c 20 28 28 64 |ame == 1|) || ((d|
|00003960| 69 73 74 20 3c 20 46 2e | 43 68 61 72 67 65 44 69 |ist < F.|ChargeDi|
|00003970| 73 74 29 0d 0a 09 09 09 | 09 26 26 20 28 61 42 6f |st).....|.&& (aBo|
|00003980| 74 2e 52 65 67 69 6f 6e | 2e 5a 6f 6e 65 20 3d 3d |t.Region|.Zone ==|
|00003990| 20 46 2e 52 65 67 69 6f | 6e 2e 5a 6f 6e 65 29 20 | F.Regio|n.Zone) |
|000039a0| 26 26 20 28 46 2e 62 46 | 6f 72 63 65 52 61 64 69 |&& (F.bF|orceRadi|
|000039b0| 75 73 20 7c 7c 20 61 42 | 6f 74 2e 4c 69 6e 65 4f |us || aB|ot.LineO|
|000039c0| 66 53 69 67 68 74 54 6f | 28 46 29 29 29 20 29 0d |fSightTo|(F))) ).|
|000039d0| 0a 09 09 09 7b 0d 0a 09 | 09 09 09 69 66 20 28 20 |....{...|...if ( |
|000039e0| 61 42 6f 74 2e 41 63 74 | 6f 72 52 65 61 63 68 61 |aBot.Act|orReacha|
|000039f0| 62 6c 65 28 46 29 20 29 | 0d 0a 09 09 09 09 7b 0d |ble(F) )|......{.|
|00003a00| 0a 09 09 09 09 09 53 65 | 74 41 74 74 72 61 63 74 |......Se|tAttract|
|00003a10| 69 6f 6e 53 74 61 74 65 | 46 6f 72 28 61 42 6f 74 |ionState|For(aBot|
|00003a20| 29 3b 0d 0a 09 09 09 09 | 09 61 42 6f 74 2e 4d 6f |);......|.aBot.Mo|
|00003a30| 76 65 54 61 72 67 65 74 | 20 3d 20 46 3b 0d 0a 09 |veTarget| = F;...|
|00003a40| 09 09 09 09 72 65 74 75 | 72 6e 20 74 72 75 65 3b |....retu|rn true;|
|00003a50| 0d 0a 09 09 09 09 7d 0d | 0a 09 09 09 09 65 6c 73 |......}.|.....els|
|00003a60| 65 20 69 66 20 28 20 21 | 46 2e 62 46 6f 72 63 65 |e if ( !|F.bForce|
|00003a70| 52 61 64 69 75 73 20 26 | 26 20 21 62 50 72 65 73 |Radius &|& !bPres|
|00003a80| 73 4f 6e 20 29 0d 0a 09 | 09 09 09 09 72 65 74 75 |sOn )...|....retu|
|00003a90| 72 6e 20 66 61 6c 73 65 | 3b 0d 0a 09 09 09 09 65 |rn false|;......e|
|00003aa0| 6c 73 65 0d 0a 09 09 09 | 09 09 72 65 74 75 72 6e |lse.....|..return|
|00003ab0| 20 46 69 6e 64 50 61 74 | 68 54 6f 46 6f 72 74 46 | FindPat|hToFortF|
|00003ac0| 6f 72 28 61 42 6f 74 2c | 20 46 29 3b 0d 0a 09 09 |or(aBot,| F);....|
|00003ad0| 09 09 7d 0d 0a 09 09 7d | 0d 0a 09 09 65 6c 73 65 |..}....}|....else|
|00003ae0| 20 69 66 20 28 20 64 69 | 73 74 20 3c 20 32 20 2a | if ( di|st < 2 *|
|00003af0| 20 46 2e 43 68 61 72 67 | 65 44 69 73 74 20 29 20 | F.Charg|eDist ) |
|00003b00| 0d 0a 09 09 7b 0d 0a 09 | 09 09 62 56 69 73 69 62 |....{...|..bVisib|
|00003b10| 6c 65 20 3d 20 61 42 6f | 74 2e 4c 69 6e 65 4f 66 |le = aBo|t.LineOf|
|00003b20| 53 69 67 68 74 54 6f 28 | 46 29 3b 0d 0a 09 09 09 |SightTo(|F);.....|
|00003b30| 69 66 20 28 20 46 2e 62 | 46 6f 72 63 65 52 61 64 |if ( F.b|ForceRad|
|00003b40| 69 75 73 20 7c 7c 20 62 | 56 69 73 69 62 6c 65 20 |ius || b|Visible |
|00003b50| 7c 7c 20 28 62 50 72 65 | 73 73 4f 6e 20 20 26 26 ||| (bPre|ssOn &&|
|00003b60| 20 28 28 62 4d 75 6c 74 | 69 53 61 6d 65 20 3d 3d | ((bMult|iSame ==|
|00003b70| 20 31 29 20 7c 7c 20 28 | 61 42 6f 74 2e 52 65 67 | 1) || (|aBot.Reg|
|00003b80| 69 6f 6e 2e 5a 6f 6e 65 | 20 3d 3d 20 46 2e 52 65 |ion.Zone| == F.Re|
|00003b90| 67 69 6f 6e 2e 5a 6f 6e | 65 29 29 29 20 29 0d 0a |gion.Zon|e))) )..|
|00003ba0| 09 09 09 7b 0d 0a 09 09 | 09 09 61 42 6f 74 2e 53 |...{....|..aBot.S|
|00003bb0| 65 74 45 6e 65 6d 79 28 | 46 29 3b 0d 0a 09 09 09 |etEnemy(|F);.....|
|00003bc0| 09 69 66 20 28 20 61 42 | 6f 74 2e 45 6e 65 6d 79 |.if ( aB|ot.Enemy|
|00003bd0| 20 3d 3d 20 46 20 29 0d | 0a 09 09 09 09 7b 0d 0a | == F ).|.....{..|
|00003be0| 09 09 09 09 09 69 66 20 | 28 20 62 56 69 73 69 62 |.....if |( bVisib|
|00003bf0| 6c 65 20 26 26 20 28 64 | 69 73 74 20 3c 20 31 32 |le && (d|ist < 12|
|00003c00| 30 30 29 20 29 0d 0a 09 | 09 09 09 09 7b 0d 0a 09 |00) )...|....{...|
|00003c10| 09 09 09 09 09 61 42 6f | 74 2e 47 6f 74 6f 53 74 |.....aBo|t.GotoSt|
|00003c20| 61 74 65 28 27 52 61 6e | 67 65 64 41 74 74 61 63 |ate('Ran|gedAttac|
|00003c30| 6b 27 29 3b 0d 0a 09 09 | 09 09 09 09 72 65 74 75 |k');....|....retu|
|00003c40| 72 6e 20 74 72 75 65 3b | 0d 0a 09 09 09 09 09 7d |rn true;|.......}|
|00003c50| 0d 0a 09 09 09 09 09 65 | 6c 73 65 0d 0a 09 09 09 |.......e|lse.....|
|00003c60| 09 09 09 72 65 74 75 72 | 6e 20 46 69 6e 64 50 61 |...retur|n FindPa|
|00003c70| 74 68 54 6f 46 6f 72 74 | 46 6f 72 28 61 42 6f 74 |thToFort|For(aBot|
|00003c80| 2c 20 46 29 3b 0d 0a 09 | 09 09 09 7d 0d 0a 09 09 |, F);...|...}....|
|00003c90| 09 7d 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 09 69 66 |.}....}.|..}...if|
|00003ca0| 20 28 20 46 6f 72 74 53 | 74 61 6e 64 61 72 64 28 | ( FortS|tandard(|
|00003cb0| 61 42 6f 74 2e 45 6e 65 | 6d 79 29 20 21 3d 20 4e |aBot.Ene|my) != N|
|00003cc0| 6f 6e 65 20 29 0d 0a 09 | 7b 0d 0a 09 09 61 42 6f |one )...|{....aBo|
|00003cd0| 74 2e 45 6e 65 6d 79 20 | 3d 20 61 42 6f 74 2e 4f |t.Enemy |= aBot.O|
|00003ce0| 6c 64 45 6e 65 6d 79 3b | 0d 0a 09 09 61 42 6f 74 |ldEnemy;|....aBot|
|00003cf0| 2e 4f 6c 64 45 6e 65 6d | 79 20 3d 20 4e 6f 6e 65 |.OldEnem|y = None|
|00003d00| 3b 0d 0a 09 09 69 66 20 | 28 20 46 6f 72 74 53 74 |;....if |( FortSt|
|00003d10| 61 6e 64 61 72 64 28 61 | 42 6f 74 2e 45 6e 65 6d |andard(a|Bot.Enem|
|00003d20| 79 29 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |y) != No|ne )....|
|00003d30| 09 61 42 6f 74 2e 45 6e | 65 6d 79 20 3d 20 4e 6f |.aBot.En|emy = No|
|00003d40| 6e 65 3b 0d 0a 09 7d 0d | 0a 09 72 65 74 75 72 6e |ne;...}.|..return|
|00003d50| 20 66 61 6c 73 65 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 | false;.|.}....fu|
|00003d60| 6e 63 74 69 6f 6e 20 62 | 6f 6f 6c 20 46 69 6e 64 |nction b|ool Find|
|00003d70| 53 70 65 63 69 61 6c 41 | 74 74 72 61 63 74 69 6f |SpecialA|ttractio|
|00003d80| 6e 46 6f 72 28 42 6f 74 | 20 61 42 6f 74 29 0d 0a |nFor(Bot| aBot)..|
|00003d90| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 50 61 77 6e 20 50 |{...loca|l Pawn P|
|00003da0| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 69 6e 74 20 6e 75 |;...loca|l int nu|
|00003db0| 6d 2c 20 6e 65 65 64 65 | 64 3b 0d 0a 09 6c 6f 63 |m, neede|d;...loc|
|00003dc0| 61 6c 20 42 6f 74 20 42 | 3b 0d 0a 09 6c 6f 63 61 |al Bot B|;...loca|
|00003dd0| 6c 20 66 6c 6f 61 74 20 | 64 69 73 74 3b 0d 0a 0d |l float |dist;...|
|00003de0| 0a 09 69 66 20 28 20 61 | 42 6f 74 2e 4c 61 73 74 |..if ( a|Bot.Last|
|00003df0| 41 74 74 72 61 63 74 43 | 68 65 63 6b 20 3d 3d 20 |AttractC|heck == |
|00003e00| 4c 65 76 65 6c 2e 54 69 | 6d 65 53 65 63 6f 6e 64 |Level.Ti|meSecond|
|00003e10| 73 20 29 0d 0a 09 09 72 | 65 74 75 72 6e 20 66 61 |s )....r|eturn fa|
|00003e20| 6c 73 65 3b 0d 0a 09 61 | 42 6f 74 2e 4c 61 73 74 |lse;...a|Bot.Last|
|00003e30| 41 74 74 72 61 63 74 43 | 68 65 63 6b 20 3d 20 4c |AttractC|heck = L|
|00003e40| 65 76 65 6c 2e 54 69 6d | 65 53 65 63 6f 6e 64 73 |evel.Tim|eSeconds|
|00003e50| 3b 0d 0a 0d 0a 09 69 66 | 20 28 20 61 42 6f 74 2e |;.....if| ( aBot.|
|00003e60| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00003e70| 6e 49 6e 66 6f 2e 54 65 | 61 6d 20 21 3d 20 44 65 |nInfo.Te|am != De|
|00003e80| 66 65 6e 64 65 72 2e 54 | 65 61 6d 49 6e 64 65 78 |fender.T|eamIndex|
|00003e90| 20 29 0d 0a 09 7b 0d 0a | 09 09 69 66 20 28 20 21 | )...{..|..if ( !|
|00003ea0| 61 42 6f 74 2e 57 65 61 | 70 6f 6e 2e 62 4d 65 6c |aBot.Wea|pon.bMel|
|00003eb0| 65 65 57 65 61 70 6f 6e | 0d 0a 09 09 09 26 26 20 |eeWeapon|.....&& |
|00003ec0| 28 46 6f 72 74 53 74 61 | 6e 64 61 72 64 28 61 42 |(FortSta|ndard(aB|
|00003ed0| 6f 74 2e 45 6e 65 6d 79 | 29 20 21 3d 20 4e 6f 6e |ot.Enemy|) != Non|
|00003ee0| 65 29 20 26 26 20 28 61 | 42 6f 74 2e 4f 6c 64 45 |e) && (a|Bot.OldE|
|00003ef0| 6e 65 6d 79 20 3d 3d 20 | 4e 6f 6e 65 29 0d 0a 09 |nemy == |None)...|
|00003f00| 09 09 26 26 20 61 42 6f | 74 2e 4c 69 6e 65 4f 66 |..&& aBo|t.LineOf|
|00003f10| 53 69 67 68 74 54 6f 28 | 61 42 6f 74 2e 45 6e 65 |SightTo(|aBot.Ene|
|00003f20| 6d 79 29 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 69 |my) )...|.{.....i|
|00003f30| 66 20 28 20 46 6f 72 74 | 53 74 61 6e 64 61 72 64 |f ( Fort|Standard|
|00003f40| 28 61 42 6f 74 2e 45 6e | 65 6d 79 29 2e 62 54 72 |(aBot.En|emy).bTr|
|00003f50| 69 67 67 65 72 4f 6e 6c | 79 20 29 0d 0a 09 09 09 |iggerOnl|y ).....|
|00003f60| 7b 0d 0a 09 09 09 09 69 | 66 20 28 20 61 42 6f 74 |{......i|f ( aBot|
|00003f70| 2e 41 63 74 6f 72 52 65 | 61 63 68 61 62 6c 65 28 |.ActorRe|achable(|
|00003f80| 61 42 6f 74 2e 45 6e 65 | 6d 79 29 20 29 0d 0a 09 |aBot.Ene|my) )...|
|00003f90| 09 09 09 7b 0d 0a 09 09 | 09 09 09 53 65 74 41 74 |...{....|...SetAt|
|00003fa0| 74 72 61 63 74 69 6f 6e | 53 74 61 74 65 46 6f 72 |traction|StateFor|
|00003fb0| 28 61 42 6f 74 29 3b 0d | 0a 09 09 09 09 09 61 42 |(aBot);.|......aB|
|00003fc0| 6f 74 2e 4d 6f 76 65 54 | 61 72 67 65 74 20 3d 20 |ot.MoveT|arget = |
|00003fd0| 61 42 6f 74 2e 45 6e 65 | 6d 79 3b 0d 0a 09 09 09 |aBot.Ene|my;.....|
|00003fe0| 09 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 0a |..return| true;..|
|00003ff0| 09 09 09 09 7d 0d 0a 09 | 09 09 7d 0d 0a 09 09 09 |....}...|..}.....|
|00004000| 65 6c 73 65 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |else....|.{......|
|00004010| 61 42 6f 74 2e 47 6f 74 | 6f 53 74 61 74 65 28 27 |aBot.Got|oState('|
|00004020| 52 61 6e 67 65 64 41 74 | 74 61 63 6b 27 29 3b 0d |RangedAt|tack');.|
|00004030| 0a 09 09 09 09 72 65 74 | 75 72 6e 20 74 72 75 65 |.....ret|urn true|
|00004040| 3b 0d 0a 09 09 09 7d 0d | 0a 09 09 7d 0d 0a 09 09 |;.....}.|...}....|
|00004050| 65 6c 73 65 20 69 66 20 | 28 20 61 42 6f 74 2e 4f |else if |( aBot.O|
|00004060| 72 64 65 72 73 20 3d 3d | 20 27 48 6f 6c 64 27 20 |rders ==| 'Hold' |
|00004070| 29 20 0d 0a 09 09 09 72 | 65 74 75 72 6e 20 41 74 |) .....r|eturn At|
|00004080| 74 61 63 6b 4f 6e 6c 79 | 4c 6f 63 61 6c 46 6f 72 |tackOnly|LocalFor|
|00004090| 74 28 61 42 6f 74 29 3b | 0d 0a 09 09 65 6c 73 65 |t(aBot);|....else|
|000040a0| 20 69 66 20 28 20 28 61 | 42 6f 74 2e 4f 72 64 65 | if ( (a|Bot.Orde|
|000040b0| 72 73 20 3d 3d 20 27 46 | 6f 6c 6c 6f 77 27 29 09 |rs == 'F|ollow').|
|000040c0| 26 26 20 28 28 54 69 6d | 65 4c 69 6d 69 74 20 3d |&& ((Tim|eLimit =|
|000040d0| 3d 20 30 29 20 7c 7c 20 | 28 52 65 6d 61 69 6e 69 |= 0) || |(Remaini|
|000040e0| 6e 67 54 69 6d 65 20 3e | 20 31 30 30 29 29 20 0d |ngTime >| 100)) .|
|000040f0| 0a 09 09 09 09 26 26 20 | 28 21 61 42 6f 74 2e 52 |.....&& |(!aBot.R|
|00004100| 65 67 69 6f 6e 2e 5a 6f | 6e 65 2e 49 73 41 28 27 |egion.Zo|ne.IsA('|
|00004110| 4b 69 6c 6c 69 6e 67 46 | 69 65 6c 64 27 29 20 7c |KillingF|ield') ||
|00004120| 7c 20 61 42 6f 74 2e 4f | 72 64 65 72 4f 62 6a 65 || aBot.O|rderObje|
|00004130| 63 74 2e 49 73 41 28 27 | 50 6c 61 79 65 72 50 61 |ct.IsA('|PlayerPa|
|00004140| 77 6e 27 29 20 7c 7c 20 | 28 50 61 77 6e 28 61 42 |wn') || |(Pawn(aB|
|00004150| 6f 74 2e 4f 72 64 65 72 | 4f 62 6a 65 63 74 29 2e |ot.Order|Object).|
|00004160| 48 65 61 6c 74 68 20 3c | 3d 20 30 29 29 20 29 0d |Health <|= 0)) ).|
|00004170| 0a 09 09 7b 0d 0a 09 09 | 09 69 66 20 28 20 21 61 |...{....|.if ( !a|
|00004180| 42 6f 74 2e 43 6c 6f 73 | 65 54 6f 50 6f 69 6e 74 |Bot.Clos|eToPoint|
|00004190| 4d 61 6e 28 50 61 77 6e | 28 61 42 6f 74 2e 4f 72 |Man(Pawn|(aBot.Or|
|000041a0| 64 65 72 4f 62 6a 65 63 | 74 29 29 20 29 0d 0a 09 |derObjec|t)) )...|
|000041b0| 09 09 7b 0d 0a 09 09 09 | 09 69 66 20 28 20 61 42 |..{.....|.if ( aB|
|000041c0| 6f 74 2e 4f 72 64 65 72 | 4f 62 6a 65 63 74 2e 49 |ot.Order|Object.I|
|000041d0| 73 41 28 27 42 6f 74 27 | 29 20 26 26 20 28 28 61 |sA('Bot'|) && ((a|
|000041e0| 42 6f 74 2e 57 65 61 70 | 6f 6e 20 3d 3d 20 4e 6f |Bot.Weap|on == No|
|000041f0| 6e 65 29 20 7c 7c 20 28 | 61 42 6f 74 2e 57 65 61 |ne) || (|aBot.Wea|
|00004200| 70 6f 6e 2e 41 49 52 61 | 74 69 6e 67 20 3c 20 30 |pon.AIRa|ting < 0|
|00004210| 2e 35 29 29 20 29 0d 0a | 09 09 09 09 09 72 65 74 |.5)) )..|.....ret|
|00004220| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 09 09 09 09 |urn fals|e;......|
|00004230| 69 66 20 28 20 61 42 6f | 74 2e 41 63 74 6f 72 52 |if ( aBo|t.ActorR|
|00004240| 65 61 63 68 61 62 6c 65 | 28 61 42 6f 74 2e 4f 72 |eachable|(aBot.Or|
|00004250| 64 65 72 4f 62 6a 65 63 | 74 29 20 29 0d 0a 09 09 |derObjec|t) )....|
|00004260| 09 09 09 61 42 6f 74 2e | 4d 6f 76 65 54 61 72 67 |...aBot.|MoveTarg|
|00004270| 65 74 20 3d 20 61 42 6f | 74 2e 4f 72 64 65 72 4f |et = aBo|t.OrderO|
|00004280| 62 6a 65 63 74 3b 0d 0a | 09 09 09 09 65 6c 73 65 |bject;..|....else|
|00004290| 0d 0a 09 09 09 09 09 61 | 42 6f 74 2e 4d 6f 76 65 |.......a|Bot.Move|
|000042a0| 54 61 72 67 65 74 20 3d | 20 61 42 6f 74 2e 46 69 |Target =| aBot.Fi|
|000042b0| 6e 64 50 61 74 68 54 6f | 77 61 72 64 28 61 42 6f |ndPathTo|ward(aBo|
|000042c0| 74 2e 4f 72 64 65 72 4f | 62 6a 65 63 74 29 3b 0d |t.OrderO|bject);.|
|000042d0| 0a 09 09 09 09 69 66 20 | 28 20 28 61 42 6f 74 2e |.....if |( (aBot.|
|000042e0| 4d 6f 76 65 54 61 72 67 | 65 74 20 21 3d 20 4e 6f |MoveTarg|et != No|
|000042f0| 6e 65 29 20 26 26 20 28 | 56 53 69 7a 65 28 61 42 |ne) && (|VSize(aB|
|00004300| 6f 74 2e 4c 6f 63 61 74 | 69 6f 6e 20 2d 20 61 42 |ot.Locat|ion - aB|
|00004310| 6f 74 2e 4d 6f 76 65 54 | 61 72 67 65 74 2e 4c 6f |ot.MoveT|arget.Lo|
|00004320| 63 61 74 69 6f 6e 29 20 | 3e 20 32 20 2a 20 61 42 |cation) |> 2 * aB|
|00004330| 6f 74 2e 43 6f 6c 6c 69 | 73 69 6f 6e 52 61 64 69 |ot.Colli|sionRadi|
|00004340| 75 73 29 20 29 0d 0a 09 | 09 09 09 7b 0d 0a 09 09 |us) )...|...{....|
|00004350| 09 09 09 53 65 74 41 74 | 74 72 61 63 74 69 6f 6e |...SetAt|traction|
|00004360| 53 74 61 74 65 46 6f 72 | 28 61 42 6f 74 29 3b 0d |StateFor|(aBot);.|
|00004370| 0a 09 09 09 09 09 72 65 | 74 75 72 6e 20 74 72 75 |......re|turn tru|
|00004380| 65 3b 0d 0a 09 09 09 09 | 7d 0d 0a 09 09 09 7d 0d |e;......|}.....}.|
|00004390| 0a 09 09 09 72 65 74 75 | 72 6e 20 41 74 74 61 63 |....retu|rn Attac|
|000043a0| 6b 4f 6e 6c 79 4c 6f 63 | 61 6c 46 6f 72 74 28 61 |kOnlyLoc|alFort(a|
|000043b0| 42 6f 74 29 3b 0d 0a 09 | 09 7d 0d 0a 09 09 65 6c |Bot);...|.}....el|
|000043c0| 73 65 20 69 66 20 28 20 | 61 42 6f 74 20 3d 3d 20 |se if ( |aBot == |
|000043d0| 4c 65 61 64 65 72 5b 61 | 42 6f 74 2e 50 6c 61 79 |Leader[a|Bot.Play|
|000043e0| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|000043f0| 6f 2e 54 65 61 6d 5d 20 | 29 20 2f 2f 20 69 66 20 |o.Team] |) // if |
|00004400| 6c 65 61 64 65 72 2c 20 | 6d 61 6b 65 20 73 75 72 |leader, |make sur|
|00004410| 65 20 66 6f 6c 6c 6f 77 | 65 72 73 20 61 72 65 20 |e follow|ers are |
|00004420| 63 6c 6f 73 65 0d 0a 09 | 09 7b 0d 0a 09 09 09 69 |close...|.{.....i|
|00004430| 66 20 28 20 61 42 6f 74 | 2e 4f 72 64 65 72 73 20 |f ( aBot|.Orders |
|00004440| 21 3d 20 27 41 74 74 61 | 63 6b 27 20 29 0d 0a 09 |!= 'Atta|ck' )...|
|00004450| 09 09 09 61 42 6f 74 2e | 53 65 74 4f 72 64 65 72 |...aBot.|SetOrder|
|00004460| 73 28 27 41 74 74 61 63 | 6b 27 2c 20 4e 6f 6e 65 |s('Attac|k', None|
|00004470| 29 3b 0d 0a 09 09 09 69 | 66 20 28 20 28 61 42 6f |);.....i|f ( (aBo|
|00004480| 74 2e 57 65 61 70 6f 6e | 20 3d 3d 20 4e 6f 6e 65 |t.Weapon| == None|
|00004490| 29 20 7c 7c 20 28 61 42 | 6f 74 2e 57 65 61 70 6f |) || (aB|ot.Weapo|
|000044a0| 6e 2e 41 49 52 61 74 69 | 6e 67 20 3c 20 30 2e 35 |n.AIRati|ng < 0.5|
|000044b0| 29 20 29 0d 0a 09 09 09 | 09 72 65 74 75 72 6e 20 |) ).....|.return |
|000044c0| 66 61 6c 73 65 3b 0d 0a | 0d 0a 09 09 09 69 66 20 |false;..|.....if |
|000044d0| 28 20 61 42 6f 74 2e 52 | 65 67 69 6f 6e 2e 5a 6f |( aBot.R|egion.Zo|
|000044e0| 6e 65 2e 62 57 61 74 65 | 72 5a 6f 6e 65 20 7c 7c |ne.bWate|rZone |||
|000044f0| 20 61 42 6f 74 2e 52 65 | 67 69 6f 6e 2e 5a 6f 6e | aBot.Re|gion.Zon|
|00004500| 65 2e 49 73 41 28 27 4b | 69 6c 6c 69 6e 67 46 69 |e.IsA('K|illingFi|
|00004510| 65 6c 64 27 29 20 7c 7c | 20 28 28 54 69 6d 65 4c |eld') ||| ((TimeL|
|00004520| 69 6d 69 74 20 3e 20 30 | 29 20 26 26 20 28 52 65 |imit > 0|) && (Re|
|00004530| 6d 61 69 6e 69 6e 67 54 | 69 6d 65 20 3c 20 31 30 |mainingT|ime < 10|
|00004540| 30 29 29 20 29 0d 0a 09 | 09 09 09 6e 65 65 64 65 |0)) )...|...neede|
|00004550| 64 20 3d 20 30 3b 0d 0a | 09 09 09 65 6c 73 65 0d |d = 0;..|...else.|
|00004560| 0a 09 09 09 7b 0d 0a 09 | 09 09 09 6e 65 65 64 65 |....{...|...neede|
|00004570| 64 20 3d 20 4d 69 6e 28 | 32 2c 20 54 65 61 6d 73 |d = Min(|2, Teams|
|00004580| 5b 61 42 6f 74 2e 50 6c | 61 79 65 72 52 65 70 6c |[aBot.Pl|ayerRepl|
|00004590| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|000045a0| 5d 2e 53 69 7a 65 20 2d | 20 32 20 29 3b 0d 0a 09 |].Size -| 2 );...|
|000045b0| 09 09 09 66 6f 72 20 28 | 20 50 3d 4c 65 76 65 6c |...for (| P=Level|
|000045c0| 2e 50 61 77 6e 4c 69 73 | 74 3b 20 50 21 3d 4e 6f |.PawnLis|t; P!=No|
|000045d0| 6e 65 3b 20 50 3d 50 2e | 4e 65 78 74 50 61 77 6e |ne; P=P.|NextPawn|
|000045e0| 20 29 0d 0a 09 09 09 09 | 7b 0d 0a 09 09 09 09 09 | )......|{.......|
|000045f0| 69 66 20 28 20 50 2e 62 | 49 73 50 6c 61 79 65 72 |if ( P.b|IsPlayer|
|00004600| 20 26 26 20 28 50 2e 50 | 6c 61 79 65 72 52 65 70 | && (P.P|layerRep|
|00004610| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 54 65 61 |lication|Info.Tea|
|00004620| 6d 20 3d 3d 20 61 42 6f | 74 2e 50 6c 61 79 65 72 |m == aBo|t.Player|
|00004630| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00004640| 54 65 61 6d 29 0d 0a 09 | 09 09 09 09 09 26 26 20 |Team)...|.....&& |
|00004650| 28 50 20 21 3d 20 61 42 | 6f 74 29 20 29 0d 0a 09 |(P != aB|ot) )...|
|00004660| 09 09 09 09 7b 0d 0a 09 | 09 09 09 09 09 42 20 3d |....{...|.....B =|
|00004670| 20 42 6f 74 28 50 29 3b | 0d 0a 09 09 09 09 09 09 | Bot(P);|........|
|00004680| 69 66 20 28 20 42 20 21 | 3d 20 4e 6f 6e 65 20 29 |if ( B !|= None )|
|00004690| 0d 0a 09 09 09 09 09 09 | 7b 0d 0a 09 09 09 09 09 |........|{.......|
|000046a0| 09 09 44 69 73 74 20 3d | 20 56 53 69 7a 65 28 42 |..Dist =| VSize(B|
|000046b0| 2e 4c 6f 63 61 74 69 6f | 6e 20 2d 20 61 42 6f 74 |.Locatio|n - aBot|
|000046c0| 2e 4c 6f 63 61 74 69 6f | 6e 29 3b 0d 0a 09 09 09 |.Locatio|n);.....|
|000046d0| 09 09 09 09 69 66 20 28 | 20 28 44 69 73 74 20 3c |....if (| (Dist <|
|000046e0| 20 36 30 30 29 20 7c 7c | 20 28 28 44 69 73 74 20 | 600) ||| ((Dist |
|000046f0| 3c 20 31 36 30 30 29 20 | 26 26 20 28 42 2e 4c 69 |< 1600) |&& (B.Li|
|00004700| 6e 65 4f 66 53 69 67 68 | 74 54 6f 28 61 42 6f 74 |neOfSigh|tTo(aBot|
|00004710| 29 29 29 20 29 0d 0a 09 | 09 09 09 09 09 09 7b 0d |))) )...|......{.|
|00004720| 0a 09 09 09 09 09 09 09 | 09 6e 75 6d 2b 2b 3b 0d |........|.num++;.|
|00004730| 0a 09 09 09 09 09 09 09 | 09 69 66 20 28 20 6e 75 |........|.if ( nu|
|00004740| 6d 20 3d 3d 20 6e 65 65 | 64 65 64 20 29 0d 0a 09 |m == nee|ded )...|
|00004750| 09 09 09 09 09 09 09 09 | 62 72 65 61 6b 3b 0d 0a |........|break;..|
|00004760| 09 09 09 09 09 09 09 7d | 0d 0a 09 09 09 09 09 09 |.......}|........|
|00004770| 7d 0d 0a 09 09 09 09 09 | 7d 0d 0a 09 09 09 09 7d |}.......|}......}|
|00004780| 0d 0a 09 09 09 7d 0d 0a | 09 09 09 61 42 6f 74 2e |.....}..|...aBot.|
|00004790| 47 6f 61 6c 53 74 72 69 | 6e 67 3d 22 4c 65 61 64 |GoalStri|ng="Lead|
|000047a0| 65 72 20 68 61 73 22 40 | 6e 75 6d 40 22 76 73 22 |er has"@|num@"vs"|
|000047b0| 40 6e 65 65 64 65 64 3b | 0d 0a 09 09 09 69 66 20 |@needed;|.....if |
|000047c0| 28 20 6e 75 6d 20 3c 20 | 6e 65 65 64 65 64 20 29 |( num < |needed )|
|000047d0| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 69 66 20 28 |.....{..|....if (|
|000047e0| 20 41 74 74 61 63 6b 4f | 6e 6c 79 4c 6f 63 61 6c | AttackO|nlyLocal|
|000047f0| 46 6f 72 74 28 61 42 6f | 74 29 20 29 0d 0a 09 09 |Fort(aBo|t) )....|
|00004800| 09 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00004810| 0a 09 09 09 09 69 66 20 | 28 20 61 42 6f 74 2e 45 |.....if |( aBot.E|
|00004820| 6e 65 6d 79 20 3d 3d 20 | 4e 6f 6e 65 20 29 0d 0a |nemy == |None )..|
|00004830| 09 09 09 09 7b 0d 0a 09 | 09 09 09 09 61 42 6f 74 |....{...|....aBot|
|00004840| 2e 43 61 6d 70 54 69 6d | 65 20 3d 20 31 2e 30 3b |.CampTim|e = 1.0;|
|00004850| 0d 0a 09 09 09 09 09 61 | 42 6f 74 2e 62 43 61 6d |.......a|Bot.bCam|
|00004860| 70 4f 6e 6c 79 4f 6e 63 | 65 20 3d 20 74 72 75 65 |pOnlyOnc|e = true|
|00004870| 3b 0d 0a 09 09 09 09 09 | 61 42 6f 74 2e 47 6f 74 |;.......|aBot.Got|
|00004880| 6f 53 74 61 74 65 28 27 | 52 6f 61 6d 69 6e 67 27 |oState('|Roaming'|
|00004890| 2c 20 27 43 61 6d 70 27 | 29 3b 0d 0a 09 09 09 09 |, 'Camp'|);......|
|000048a0| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 09 |.return |true;...|
|000048b0| 09 09 09 7d 0d 0a 09 09 | 09 09 65 6c 73 65 20 69 |...}....|..else i|
|000048c0| 66 20 28 20 21 61 42 6f | 74 2e 4c 69 6e 65 4f 66 |f ( !aBo|t.LineOf|
|000048d0| 53 69 67 68 74 54 6f 28 | 61 42 6f 74 2e 45 6e 65 |SightTo(|aBot.Ene|
|000048e0| 6d 79 29 20 29 0d 0a 09 | 09 09 09 7b 0d 0a 09 09 |my) )...|...{....|
|000048f0| 09 09 09 61 42 6f 74 2e | 47 6f 74 6f 53 74 61 74 |...aBot.|GotoStat|
|00004900| 65 28 27 53 74 61 6b 65 | 4f 75 74 27 29 3b 0d 0a |e('Stake|Out');..|
|00004910| 09 09 09 09 09 72 65 74 | 75 72 6e 20 74 72 75 65 |.....ret|urn true|
|00004920| 3b 0d 0a 09 09 09 09 7d | 0d 0a 09 09 09 09 65 6c |;......}|......el|
|00004930| 73 65 0d 0a 09 09 09 09 | 09 72 65 74 75 72 6e 20 |se......|.return |
|00004940| 46 69 6e 64 50 61 74 68 | 54 6f 46 6f 72 74 46 6f |FindPath|ToFortFo|
|00004950| 72 28 61 42 6f 74 2c 20 | 42 65 73 74 46 6f 72 74 |r(aBot, |BestFort|
|00004960| 29 3b 0d 0a 09 09 09 7d | 0d 0a 09 09 7d 0d 0a 09 |);.....}|....}...|
|00004970| 7d 0d 0a 0d 0a 09 69 66 | 20 28 20 28 61 42 6f 74 |}.....if| ( (aBot|
|00004980| 2e 57 65 61 70 6f 6e 20 | 3d 3d 20 4e 6f 6e 65 29 |.Weapon |== None)|
|00004990| 20 7c 7c 20 28 61 42 6f | 74 2e 57 65 61 70 6f 6e | || (aBo|t.Weapon|
|000049a0| 2e 41 49 52 61 74 69 6e | 67 20 3c 20 30 2e 35 29 |.AIRatin|g < 0.5)|
|000049b0| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 66 61 6c | )....re|turn fal|
|000049c0| 73 65 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 61 42 6f |se;.....|if ( aBo|
|000049d0| 74 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |t.Player|Replicat|
|000049e0| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 20 3d 3d 20 |ionInfo.|Team == |
|000049f0| 44 65 66 65 6e 64 65 72 | 2e 54 65 61 6d 49 6e 64 |Defender|.TeamInd|
|00004a00| 65 78 20 29 0d 0a 09 7b | 0d 0a 09 09 61 42 6f 74 |ex )...{|....aBot|
|00004a10| 2e 47 6f 61 6c 53 74 72 | 69 6e 67 20 3d 20 22 44 |.GoalStr|ing = "D|
|00004a20| 65 66 65 6e 64 65 72 20 | 6f 66 22 40 61 42 6f 74 |efender |of"@aBot|
|00004a30| 2e 4f 72 64 65 72 4f 62 | 6a 65 63 74 3b 0d 0a 09 |.OrderOb|ject;...|
|00004a40| 09 69 66 20 28 20 28 61 | 42 6f 74 2e 45 6e 65 6d |.if ( (a|Bot.Enem|
|00004a50| 79 20 21 3d 20 4e 6f 6e | 65 29 20 26 26 20 28 4c |y != Non|e) && (L|
|00004a60| 65 76 65 6c 2e 54 69 6d | 65 53 65 63 6f 6e 64 73 |evel.Tim|eSeconds|
|00004a70| 20 2d 20 4c 61 73 74 49 | 6e 63 6f 6d 69 6e 67 20 | - LastI|ncoming |
|00004a80| 3e 20 31 32 29 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |> 12) ).|...{....|
|00004a90| 09 4c 61 73 74 49 6e 63 | 6f 6d 69 6e 67 20 3d 20 |.LastInc|oming = |
|00004aa0| 4c 65 76 65 6c 2e 54 69 | 6d 65 53 65 63 6f 6e 64 |Level.Ti|meSecond|
|00004ab0| 73 3b 0d 0a 09 09 09 61 | 42 6f 74 2e 53 65 6e 64 |s;.....a|Bot.Send|
|00004ac0| 54 65 61 6d 4d 65 73 73 | 61 67 65 28 4e 6f 6e 65 |TeamMess|age(None|
|00004ad0| 2c 20 27 4f 54 48 45 52 | 27 2c 20 31 34 2c 20 31 |, 'OTHER|', 14, 1|
|00004ae0| 35 29 3b 20 2f 2f 22 49 | 6e 63 6f 6d 69 6e 67 21 |5); //"I|ncoming!|
|00004af0| 22 0d 0a 09 09 7d 09 09 | 09 0d 0a 09 09 69 66 20 |"....}..|.....if |
|00004b00| 28 20 21 61 42 6f 74 2e | 62 4b 61 6d 69 6b 61 7a |( !aBot.|bKamikaz|
|00004b10| 65 20 26 26 20 28 61 42 | 6f 74 2e 48 65 61 6c 74 |e && (aB|ot.Healt|
|00004b20| 68 20 3c 20 34 30 29 20 | 29 0d 0a 09 09 7b 0d 0a |h < 40) |)....{..|
|00004b30| 09 09 09 61 42 6f 74 2e | 62 4b 61 6d 69 6b 61 7a |...aBot.|bKamikaz|
|00004b40| 65 20 3d 20 28 20 46 52 | 61 6e 64 28 29 20 3c 20 |e = ( FR|and() < |
|00004b50| 30 2e 31 20 29 3b 0d 0a | 09 09 09 72 65 74 75 72 |0.1 );..|...retur|
|00004b60| 6e 20 66 61 6c 73 65 3b | 0d 0a 09 09 7d 0d 0a 0d |n false;|....}...|
|00004b70| 0a 09 09 69 66 20 28 20 | 28 61 42 6f 74 2e 45 6e |...if ( |(aBot.En|
|00004b80| 65 6d 79 20 21 3d 20 4e | 6f 6e 65 29 20 26 26 20 |emy != N|one) && |
|00004b90| 28 46 52 61 6e 64 28 29 | 20 3c 20 30 2e 32 29 20 |(FRand()| < 0.2) |
|00004ba0| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 61 42 6f 74 2e |)....{..|...aBot.|
|00004bb0| 4f 72 64 65 72 73 20 3d | 20 27 46 72 65 65 4c 61 |Orders =| 'FreeLa|
|00004bc0| 6e 63 65 27 3b 0d 0a 09 | 09 09 61 42 6f 74 2e 47 |nce';...|..aBot.G|
|00004bd0| 6f 61 6c 53 74 72 69 6e | 67 20 3d 20 22 46 72 65 |oalStrin|g = "Fre|
|00004be0| 65 4c 61 6e 63 65 72 22 | 3b 0d 0a 09 09 7d 0d 0a |eLancer"|;....}..|
|00004bf0| 09 09 65 6c 73 65 20 69 | 66 20 28 20 28 61 42 6f |..else i|f ( (aBo|
|00004c00| 74 2e 45 6e 65 6d 79 20 | 3d 3d 20 4e 6f 6e 65 29 |t.Enemy |== None)|
|00004c10| 20 26 26 20 28 42 6f 74 | 52 65 70 6c 69 63 61 74 | && (Bot|Replicat|
|00004c20| 69 6f 6e 49 6e 66 6f 28 | 61 42 6f 74 2e 50 6c 61 |ionInfo(|aBot.Pla|
|00004c30| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00004c40| 66 6f 29 2e 52 65 61 6c | 4f 72 64 65 72 73 20 3d |fo).Real|Orders =|
|00004c50| 3d 20 27 44 65 66 65 6e | 64 27 29 20 29 0d 0a 09 |= 'Defen|d') )...|
|00004c60| 09 7b 0d 0a 09 09 09 61 | 42 6f 74 2e 4f 72 64 65 |.{.....a|Bot.Orde|
|00004c70| 72 73 20 3d 20 27 44 65 | 66 65 6e 64 27 3b 0d 0a |rs = 'De|fend';..|
|00004c80| 09 09 09 61 42 6f 74 2e | 47 6f 61 6c 53 74 72 69 |...aBot.|GoalStri|
|00004c90| 6e 67 20 3d 20 22 44 65 | 66 65 6e 64 69 6e 67 22 |ng = "De|fending"|
|00004ca0| 3b 0d 0a 09 09 7d 0d 0a | 09 09 69 66 20 28 20 61 |;....}..|..if ( a|
|00004cb0| 42 6f 74 2e 4f 72 64 65 | 72 73 20 21 3d 20 27 44 |Bot.Orde|rs != 'D|
|00004cc0| 65 66 65 6e 64 27 20 29 | 0d 0a 09 09 09 72 65 74 |efend' )|.....ret|
|00004cd0| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 09 09 65 6c |urn fals|e;....el|
|00004ce0| 73 65 0d 0a 09 09 7b 0d | 0a 09 09 09 69 66 20 28 |se....{.|....if (|
|00004cf0| 20 28 61 42 6f 74 2e 45 | 6e 65 6d 79 20 3d 3d 20 | (aBot.E|nemy == |
|00004d00| 4e 6f 6e 65 29 20 26 26 | 20 61 42 6f 74 2e 46 69 |None) &&| aBot.Fi|
|00004d10| 6e 64 41 6d 62 75 73 68 | 53 70 6f 74 28 29 20 29 |ndAmbush|Spot() )|
|00004d20| 0d 0a 09 09 09 09 72 65 | 74 75 72 6e 20 74 72 75 |......re|turn tru|
|00004d30| 65 3b 0d 0a 0d 0a 09 09 | 09 69 66 20 28 20 61 42 |e;......|.if ( aB|
|00004d40| 6f 74 2e 41 6d 62 75 73 | 68 53 70 6f 74 20 21 3d |ot.Ambus|hSpot !=|
|00004d50| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 09 7b 0d 0a 09 | None ).|....{...|
|00004d60| 09 09 09 69 66 20 28 20 | 61 42 6f 74 2e 4c 69 6e |...if ( |aBot.Lin|
|00004d70| 65 4f 66 53 69 67 68 74 | 54 6f 28 61 42 6f 74 2e |eOfSight|To(aBot.|
|00004d80| 41 6d 62 75 73 68 53 70 | 6f 74 29 20 29 0d 0a 09 |AmbushSp|ot) )...|
|00004d90| 09 09 09 09 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |....retu|rn false|
|00004da0| 3b 0d 0a 09 09 09 09 65 | 6c 73 65 20 69 66 20 28 |;......e|lse if (|
|00004db0| 20 61 42 6f 74 2e 45 6e | 65 6d 79 20 3d 3d 20 4e | aBot.En|emy == N|
|00004dc0| 6f 6e 65 20 29 0d 0a 09 | 09 09 09 7b 20 0d 0a 09 |one )...|...{ ...|
|00004dd0| 09 09 09 09 61 42 6f 74 | 2e 4d 6f 76 65 54 61 72 |....aBot|.MoveTar|
|00004de0| 67 65 74 20 3d 20 61 42 | 6f 74 2e 46 69 6e 64 50 |get = aB|ot.FindP|
|00004df0| 61 74 68 54 6f 77 61 72 | 64 28 61 42 6f 74 2e 41 |athTowar|d(aBot.A|
|00004e00| 6d 62 75 73 68 73 70 6f | 74 29 3b 0d 0a 09 09 09 |mbushspo|t);.....|
|00004e10| 09 09 69 66 20 28 20 61 | 42 6f 74 2e 4d 6f 76 65 |..if ( a|Bot.Move|
|00004e20| 54 61 72 67 65 74 20 21 | 3d 20 4e 6f 6e 65 20 29 |Target !|= None )|
|00004e30| 0d 0a 09 09 09 09 09 7b | 0d 0a 09 09 09 09 09 09 |.......{|........|
|00004e40| 53 65 74 41 74 74 72 61 | 63 74 69 6f 6e 53 74 61 |SetAttra|ctionSta|
|00004e50| 74 65 46 6f 72 28 61 42 | 6f 74 29 3b 0d 0a 09 09 |teFor(aB|ot);....|
|00004e60| 09 09 09 09 72 65 74 75 | 72 6e 20 74 72 75 65 3b |....retu|rn true;|
|00004e70| 0d 0a 09 09 09 09 09 7d | 0d 0a 09 09 09 09 7d 0d |.......}|......}.|
|00004e80| 0a 09 09 09 7d 0d 0a 09 | 09 09 65 6c 73 65 20 69 |....}...|..else i|
|00004e90| 66 20 28 20 61 42 6f 74 | 2e 4c 69 6e 65 4f 66 53 |f ( aBot|.LineOfS|
|00004ea0| 69 67 68 74 54 6f 28 61 | 42 6f 74 2e 4f 72 64 65 |ightTo(a|Bot.Orde|
|00004eb0| 72 4f 62 6a 65 63 74 29 | 20 29 0d 0a 09 09 09 09 |rObject)| )......|
|00004ec0| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 09 |return f|alse;...|
|00004ed0| 09 09 72 65 74 75 72 6e | 20 46 69 6e 64 50 61 74 |..return| FindPat|
|00004ee0| 68 54 6f 46 6f 72 74 46 | 6f 72 28 61 42 6f 74 2c |hToFortF|or(aBot,|
|00004ef0| 20 61 42 6f 74 2e 4f 72 | 64 65 72 4f 62 6a 65 63 | aBot.Or|derObjec|
|00004f00| 74 29 3b 0d 0a 09 09 7d | 0d 0a 09 7d 09 09 0d 0a |t);....}|...}....|
|00004f10| 09 65 6c 73 65 0d 0a 09 | 7b 0d 0a 09 09 69 66 20 |.else...|{....if |
|00004f20| 28 20 41 74 74 61 63 6b | 4f 6e 6c 79 4c 6f 63 61 |( Attack|OnlyLoca|
|00004f30| 6c 46 6f 72 74 28 61 42 | 6f 74 29 20 29 0d 0a 09 |lFort(aB|ot) )...|
|00004f40| 09 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 09 09 |..return| true;..|
|00004f50| 0d 0a 0d 0a 09 09 69 66 | 20 28 20 61 42 6f 74 2e |......if| ( aBot.|
|00004f60| 4f 72 64 65 72 73 20 3d | 3d 20 27 46 72 65 65 6c |Orders =|= 'Freel|
|00004f70| 61 6e 63 65 27 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |ance' ).|...{....|
|00004f80| 09 69 66 20 28 20 42 6f | 74 52 65 70 6c 69 63 61 |.if ( Bo|tReplica|
|00004f90| 74 69 6f 6e 49 6e 66 6f | 28 61 42 6f 74 2e 50 6c |tionInfo|(aBot.Pl|
|00004fa0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00004fb0| 6e 66 6f 29 2e 52 65 61 | 6c 4f 72 64 65 72 73 20 |nfo).Rea|lOrders |
|00004fc0| 3d 3d 20 27 46 72 65 65 | 6c 61 6e 63 65 27 20 29 |== 'Free|lance' )|
|00004fd0| 0d 0a 09 09 09 09 72 65 | 74 75 72 6e 20 66 61 6c |......re|turn fal|
|00004fe0| 73 65 3b 0d 0a 09 09 09 | 69 66 20 28 20 28 46 52 |se;.....|if ( (FR|
|00004ff0| 61 6e 64 28 29 20 3c 20 | 30 2e 31 29 20 7c 7c 20 |and() < |0.1) || |
|00005000| 28 28 54 69 6d 65 4c 69 | 6d 69 74 20 3e 20 30 29 |((TimeLi|mit > 0)|
|00005010| 20 26 26 20 28 52 65 6d | 61 69 6e 69 6e 67 54 69 | && (Rem|ainingTi|
|00005020| 6d 65 20 3c 20 31 32 30 | 29 29 20 29 0d 0a 09 09 |me < 120|)) )....|
|00005030| 09 09 61 42 6f 74 2e 53 | 65 74 4f 72 64 65 72 73 |..aBot.S|etOrders|
|00005040| 28 42 6f 74 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |(BotRepl|icationI|
|00005050| 6e 66 6f 28 61 42 6f 74 | 2e 50 6c 61 79 65 72 52 |nfo(aBot|.PlayerR|
|00005060| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 29 2e |eplicati|onInfo).|
|00005070| 52 65 61 6c 4f 72 64 65 | 72 73 2c 20 42 6f 74 52 |RealOrde|rs, BotR|
|00005080| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 28 61 |eplicati|onInfo(a|
|00005090| 42 6f 74 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |Bot.Play|erReplic|
|000050a0| 61 74 69 6f 6e 49 6e 66 | 6f 29 2e 52 65 61 6c 4f |ationInf|o).RealO|
|000050b0| 72 64 65 72 47 69 76 65 | 72 2c 20 74 72 75 65 29 |rderGive|r, true)|
|000050c0| 3b 0d 0a 09 09 09 65 6c | 73 65 0d 0a 09 09 09 09 |;.....el|se......|
|000050d0| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 09 |return f|alse;...|
|000050e0| 09 7d 0d 0a 0d 0a 09 09 | 72 65 74 75 72 6e 20 46 |.}......|return F|
|000050f0| 69 6e 64 50 61 74 68 54 | 6f 46 6f 72 74 46 6f 72 |indPathT|oFortFor|
|00005100| 28 61 42 6f 74 2c 20 42 | 65 73 74 46 6f 72 74 29 |(aBot, B|estFort)|
|00005110| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 72 65 74 75 72 6e |;...}...|..return|
|00005120| 20 66 61 6c 73 65 3b 0d | 0a 7d 0d 0a 09 0d 0a 66 | false;.|.}.....f|
|00005130| 75 6e 63 74 69 6f 6e 20 | 62 79 74 65 20 41 73 73 |unction |byte Ass|
|00005140| 65 73 73 42 6f 74 41 74 | 74 69 74 75 64 65 28 42 |essBotAt|titude(B|
|00005150| 6f 74 20 61 42 6f 74 2c | 20 50 61 77 6e 20 4f 74 |ot aBot,| Pawn Ot|
|00005160| 68 65 72 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |her)..{.|..local |
|00005170| 50 61 77 6e 20 50 3b 0d | 0a 09 6c 6f 63 61 6c 20 |Pawn P;.|..local |
|00005180| 69 6e 74 20 6e 75 6d 2c | 20 6e 65 65 64 65 64 3b |int num,| needed;|
|00005190| 0d 0a 09 6c 6f 63 61 6c | 20 42 6f 74 20 42 3b 0d |...local| Bot B;.|
|000051a0| 0a 09 6c 6f 63 61 6c 20 | 66 6c 6f 61 74 20 44 69 |..local |float Di|
|000051b0| 73 74 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 4f 74 68 |st;.....|if ( Oth|
|000051c0| 65 72 2e 49 73 41 28 27 | 46 6f 72 74 53 74 61 6e |er.IsA('|FortStan|
|000051d0| 64 61 72 64 27 29 20 29 | 0d 0a 09 7b 0d 0a 09 09 |dard') )|...{....|
|000051e0| 69 66 20 28 20 61 42 6f | 74 2e 50 6c 61 79 65 72 |if ( aBo|t.Player|
|000051f0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00005200| 54 65 61 6d 20 3d 3d 20 | 44 65 66 65 6e 64 65 72 |Team == |Defender|
|00005210| 2e 54 65 61 6d 49 6e 64 | 65 78 20 29 0d 0a 09 09 |.TeamInd|ex )....|
|00005220| 09 72 65 74 75 72 6e 20 | 33 3b 0d 0a 09 09 65 6c |.return |3;....el|
|00005230| 73 65 0d 0a 09 09 09 72 | 65 74 75 72 6e 20 31 3b |se.....r|eturn 1;|
|00005240| 0d 0a 09 7d 0d 0a 09 65 | 6c 73 65 20 69 66 20 28 |...}...e|lse if (|
|00005250| 20 42 6f 74 52 65 70 6c | 69 63 61 74 69 6f 6e 49 | BotRepl|icationI|
|00005260| 6e 66 6f 28 61 42 6f 74 | 2e 50 6c 61 79 65 72 52 |nfo(aBot|.PlayerR|
|00005270| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 29 2e |eplicati|onInfo).|
|00005280| 52 65 61 6c 4f 72 64 65 | 72 73 20 3d 3d 20 27 41 |RealOrde|rs == 'A|
|00005290| 74 74 61 63 6b 27 20 29 | 20 0d 0a 09 7b 0d 0a 09 |ttack' )| ...{...|
|000052a0| 09 69 66 20 28 20 28 61 | 42 6f 74 20 3d 3d 20 4c |.if ( (a|Bot == L|
|000052b0| 65 61 64 65 72 5b 61 42 | 6f 74 2e 50 6c 61 79 65 |eader[aB|ot.Playe|
|000052c0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|000052d0| 2e 54 65 61 6d 5d 29 0d | 0a 09 09 09 26 26 20 28 |.Team]).|....&& (|
|000052e0| 28 4f 74 68 65 72 2e 4c | 6f 63 61 74 69 6f 6e 2e |(Other.L|ocation.|
|000052f0| 5a 20 3e 20 61 42 6f 74 | 2e 4c 6f 63 61 74 69 6f |Z > aBot|.Locatio|
|00005300| 6e 2e 5a 20 2b 20 35 31 | 32 29 20 7c 7c 20 4f 74 |n.Z + 51|2) || Ot|
|00005310| 68 65 72 2e 49 73 41 28 | 27 54 65 61 6d 43 61 6e |her.IsA(|'TeamCan|
|00005320| 6e 6f 6e 27 29 29 20 29 | 0d 0a 09 09 7b 0d 0a 09 |non')) )|....{...|
|00005330| 09 09 2f 2f 20 69 67 6e | 6f 72 65 20 69 66 20 65 |..// ign|ore if e|
|00005340| 6e 6f 75 67 68 20 66 6f | 6c 6c 6f 77 65 72 73 20 |nough fo|llowers |
|00005350| 74 6f 20 70 72 65 73 73 | 20 6f 6e 0d 0a 09 09 09 |to press| on.....|
|00005360| 6e 65 65 64 65 64 20 3d | 20 4d 69 6e 28 32 2c 20 |needed =| Min(2, |
|00005370| 54 65 61 6d 73 5b 61 42 | 6f 74 2e 50 6c 61 79 65 |Teams[aB|ot.Playe|
|00005380| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00005390| 2e 54 65 61 6d 5d 2e 53 | 69 7a 65 20 2d 20 32 20 |.Team].S|ize - 2 |
|000053a0| 29 3b 0d 0a 09 09 09 66 | 6f 72 20 28 20 50 3d 4c |);.....f|or ( P=L|
|000053b0| 65 76 65 6c 2e 50 61 77 | 6e 4c 69 73 74 3b 20 50 |evel.Paw|nList; P|
|000053c0| 21 3d 4e 6f 6e 65 3b 20 | 50 3d 50 2e 4e 65 78 74 |!=None; |P=P.Next|
|000053d0| 50 61 77 6e 20 29 0d 0a | 09 09 09 7b 0d 0a 09 09 |Pawn )..|...{....|
|000053e0| 09 09 69 66 20 28 20 50 | 2e 62 49 73 50 6c 61 79 |..if ( P|.bIsPlay|
|000053f0| 65 72 20 26 26 20 28 50 | 2e 50 6c 61 79 65 72 52 |er && (P|.PlayerR|
|00005400| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|00005410| 65 61 6d 20 3d 3d 20 61 | 42 6f 74 2e 50 6c 61 79 |eam == a|Bot.Play|
|00005420| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00005430| 6f 2e 54 65 61 6d 29 0d | 0a 09 09 09 09 09 26 26 |o.Team).|......&&|
|00005440| 20 28 50 20 21 3d 20 61 | 42 6f 74 29 20 29 0d 0a | (P != a|Bot) )..|
|00005450| 09 09 09 09 7b 0d 0a 09 | 09 09 09 09 42 20 3d 20 |....{...|....B = |
|00005460| 42 6f 74 28 50 29 3b 0d | 0a 09 09 09 09 09 69 66 |Bot(P);.|......if|
|00005470| 20 28 20 28 42 20 21 3d | 20 4e 6f 6e 65 29 0d 0a | ( (B !=| None)..|
|00005480| 09 09 09 09 09 09 26 26 | 20 28 42 2e 4f 72 64 65 |......&&| (B.Orde|
|00005490| 72 73 20 3d 3d 20 27 46 | 6f 6c 6c 6f 77 27 29 20 |rs == 'F|ollow') |
|000054a0| 26 26 20 28 42 2e 4f 72 | 64 65 72 4f 62 6a 65 63 |&& (B.Or|derObjec|
|000054b0| 74 20 3d 3d 20 61 42 6f | 74 29 20 29 0d 0a 09 09 |t == aBo|t) )....|
|000054c0| 09 09 09 7b 0d 0a 09 09 | 09 09 09 09 44 69 73 74 |...{....|....Dist|
|000054d0| 20 3d 20 56 53 69 7a 65 | 28 42 2e 4c 6f 63 61 74 | = VSize|(B.Locat|
|000054e0| 69 6f 6e 20 2d 20 61 42 | 6f 74 2e 4c 6f 63 61 74 |ion - aB|ot.Locat|
|000054f0| 69 6f 6e 29 3b 0d 0a 09 | 09 09 09 09 09 69 66 20 |ion);...|.....if |
|00005500| 28 20 28 44 69 73 74 20 | 3c 20 36 30 30 29 20 7c |( (Dist |< 600) ||
|00005510| 7c 20 28 28 44 69 73 74 | 20 3c 20 31 36 30 30 29 || ((Dist| < 1600)|
|00005520| 20 26 26 20 28 42 2e 4c | 69 6e 65 4f 66 53 69 67 | && (B.L|ineOfSig|
|00005530| 68 74 54 6f 28 61 42 6f | 74 29 29 29 20 29 0d 0a |htTo(aBo|t))) )..|
|00005540| 09 09 09 09 09 09 7b 0d | 0a 09 09 09 09 09 09 09 |......{.|........|
|00005550| 6e 75 6d 2b 2b 3b 0d 0a | 09 09 09 09 09 09 09 69 |num++;..|.......i|
|00005560| 66 20 28 20 6e 75 6d 20 | 3d 3d 20 6e 65 65 64 65 |f ( num |== neede|
|00005570| 64 20 29 0d 0a 09 09 09 | 09 09 09 09 09 62 72 65 |d ).....|.....bre|
|00005580| 61 6b 3b 0d 0a 09 09 09 | 09 09 09 7d 0d 0a 09 09 |ak;.....|...}....|
|00005590| 09 09 09 7d 0d 0a 09 09 | 09 09 7d 0d 0a 09 09 09 |...}....|..}.....|
|000055a0| 7d 0d 0a 09 09 09 69 66 | 20 28 20 6e 75 6d 20 3c |}.....if| ( num <|
|000055b0| 20 6e 65 65 64 65 64 20 | 29 0d 0a 09 09 09 09 72 | needed |)......r|
|000055c0| 65 74 75 72 6e 20 31 3b | 0d 0a 09 09 09 65 6c 73 |eturn 1;|.....els|
|000055d0| 65 0d 0a 09 09 09 09 72 | 65 74 75 72 6e 20 32 3b |e......r|eturn 2;|
|000055e0| 20 2f 2f 69 67 6e 6f 72 | 65 0d 0a 09 09 7d 0d 0a | //ignor|e....}..|
|000055f0| 09 09 65 6c 73 65 20 69 | 66 20 28 20 4f 74 68 65 |..else i|f ( Othe|
|00005600| 72 2e 62 49 73 50 6c 61 | 79 65 72 20 26 26 20 28 |r.bIsPla|yer && (|
|00005610| 61 42 6f 74 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |aBot.Pla|yerRepli|
|00005620| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 20 |cationIn|fo.Team |
|00005630| 3d 3d 20 4f 74 68 65 72 | 2e 50 6c 61 79 65 72 52 |== Other|.PlayerR|
|00005640| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|00005650| 65 61 6d 29 20 29 0d 0a | 09 09 09 72 65 74 75 72 |eam) )..|...retur|
|00005660| 6e 20 33 3b 0d 0a 09 09 | 65 6c 73 65 20 0d 0a 09 |n 3;....|else ...|
|00005670| 09 09 72 65 74 75 72 6e | 20 31 3b 0d 0a 09 7d 0d |..return| 1;...}.|
|00005680| 0a 09 65 6c 73 65 20 0d | 0a 09 09 72 65 74 75 72 |..else .|...retur|
|00005690| 6e 20 53 75 70 65 72 2e | 41 73 73 65 73 73 42 6f |n Super.|AssessBo|
|000056a0| 74 41 74 74 69 74 75 64 | 65 28 61 42 6f 74 2c 20 |tAttitud|e(aBot, |
|000056b0| 4f 74 68 65 72 29 3b 0d | 0a 7d 0d 0a 20 0d 0a 66 |Other);.|.}.. ..f|
|000056c0| 75 6e 63 74 69 6f 6e 20 | 66 6c 6f 61 74 20 47 61 |unction |float Ga|
|000056d0| 6d 65 54 68 72 65 61 74 | 41 64 64 28 42 6f 74 20 |meThreat|Add(Bot |
|000056e0| 61 42 6f 74 2c 20 50 61 | 77 6e 20 4f 74 68 65 72 |aBot, Pa|wn Other|
|000056f0| 29 0d 0a 7b 0d 0a 09 69 | 66 20 28 20 4f 74 68 65 |)..{...i|f ( Othe|
|00005700| 72 2e 49 73 41 28 27 46 | 6f 72 74 53 74 61 6e 64 |r.IsA('F|ortStand|
|00005710| 61 72 64 27 29 20 26 26 | 20 28 61 42 6f 74 2e 50 |ard') &&| (aBot.P|
|00005720| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00005730| 49 6e 66 6f 2e 54 65 61 | 6d 20 21 3d 20 44 65 66 |Info.Tea|m != Def|
|00005740| 65 6e 64 65 72 2e 54 65 | 61 6d 49 6e 64 65 78 29 |ender.Te|amIndex)|
|00005750| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 35 3b 0d | )....re|turn 5;.|
|00005760| 0a 09 69 66 20 28 20 4f | 74 68 65 72 2e 49 73 41 |..if ( O|ther.IsA|
|00005770| 28 27 54 65 61 6d 43 61 | 6e 6e 6f 6e 27 29 20 7c |('TeamCa|nnon') ||
|00005780| 7c 20 28 4f 74 68 65 72 | 2e 4c 6f 63 61 74 69 6f || (Other|.Locatio|
|00005790| 6e 2e 5a 20 2d 20 4c 6f | 63 61 74 69 6f 6e 2e 5a |n.Z - Lo|cation.Z|
|000057a0| 20 3e 20 35 30 30 29 20 | 29 0d 0a 09 09 72 65 74 | > 500) |)....ret|
|000057b0| 75 72 6e 20 2d 35 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |urn -5;.|.}....fu|
|000057c0| 6e 63 74 69 6f 6e 20 53 | 65 74 42 6f 74 4f 72 64 |nction S|etBotOrd|
|000057d0| 65 72 73 28 42 6f 74 20 | 4e 65 77 42 6f 74 29 0d |ers(Bot |NewBot).|
|000057e0| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 50 61 77 6e 20 |.{...loc|al Pawn |
|000057f0| 50 2c 20 4c 3b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |P, L;...|local in|
|00005800| 74 20 6e 75 6d 3b 0d 0a | 0d 0a 09 4e 65 77 42 6f |t num;..|...NewBo|
|00005810| 74 2e 42 61 73 65 41 67 | 67 72 65 73 73 69 76 65 |t.BaseAg|gressive|
|00005820| 6e 65 73 73 20 2b 3d 20 | 30 2e 33 3b 0d 0a 09 69 |ness += |0.3;...i|
|00005830| 66 20 28 20 49 73 4f 6e | 54 65 61 6d 28 4e 65 77 |f ( IsOn|Team(New|
|00005840| 42 6f 74 2c 30 29 20 29 | 0d 0a 09 7b 0d 0a 09 09 |Bot,0) )|...{....|
|00005850| 4e 65 77 42 6f 74 2e 53 | 65 74 4f 72 64 65 72 73 |NewBot.S|etOrders|
|00005860| 28 27 44 65 66 65 6e 64 | 27 2c 20 4e 6f 6e 65 2c |('Defend|', None,|
|00005870| 20 74 72 75 65 29 3b 0d | 0a 09 09 72 65 74 75 72 | true);.|...retur|
|00005880| 6e 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 4e 65 77 42 6f |n;...}..|...NewBo|
|00005890| 74 2e 53 65 74 4f 72 64 | 65 72 73 28 27 41 74 74 |t.SetOrd|ers('Att|
|000058a0| 61 63 6b 27 2c 20 4e 6f | 6e 65 2c 20 74 72 75 65 |ack', No|ne, true|
|000058b0| 29 3b 0d 0a 0d 0a 09 2f | 2f 20 6f 6e 6c 79 20 66 |);...../|/ only f|
|000058c0| 6f 6c 6c 6f 77 20 70 6c | 61 79 65 72 73 2c 20 69 |ollow pl|ayers, i|
|000058d0| 66 20 74 68 65 72 65 20 | 61 72 65 20 61 6e 79 0d |f there |are any.|
|000058e0| 0a 09 46 6f 72 20 28 20 | 50 3d 4c 65 76 65 6c 2e |..For ( |P=Level.|
|000058f0| 50 61 77 6e 4c 69 73 74 | 3b 20 50 21 3d 4e 6f 6e |PawnList|; P!=Non|
|00005900| 65 3b 20 50 3d 20 50 2e | 4e 65 78 74 50 61 77 6e |e; P= P.|NextPawn|
|00005910| 20 29 0d 0a 09 09 69 66 | 20 28 20 50 2e 49 73 41 | )....if| ( P.IsA|
|00005920| 28 27 50 6c 61 79 65 72 | 50 61 77 6e 27 29 20 26 |('Player|Pawn') &|
|00005930| 26 20 28 50 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |& (P.Pla|yerRepli|
|00005940| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 20 |cationIn|fo.Team |
|00005950| 3d 3d 20 4e 65 77 42 6f | 74 2e 50 6c 61 79 65 72 |== NewBo|t.Player|
|00005960| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00005970| 54 65 61 6d 29 0d 0a 09 | 09 09 26 26 20 21 50 2e |Team)...|..&& !P.|
|00005980| 49 73 41 28 27 53 70 65 | 63 74 61 74 6f 72 27 29 |IsA('Spe|ctator')|
|00005990| 20 29 0d 0a 09 7b 0d 0a | 09 09 6e 75 6d 2b 2b 3b | )...{..|..num++;|
|000059a0| 0d 0a 09 09 69 66 20 28 | 20 28 4c 20 3d 3d 20 4e |....if (| (L == N|
|000059b0| 6f 6e 65 29 20 7c 7c 20 | 28 46 52 61 6e 64 28 29 |one) || |(FRand()|
|000059c0| 20 3c 20 31 2e 30 2f 66 | 6c 6f 61 74 28 6e 75 6d | < 1.0/f|loat(num|
|000059d0| 29 29 20 29 0d 0a 09 09 | 09 4c 20 3d 20 50 3b 0d |)) )....|.L = P;.|
|000059e0| 0a 09 7d 0d 0a 09 0d 0a | 09 69 66 20 28 20 4c 20 |..}.....|.if ( L |
|000059f0| 21 3d 20 4e 6f 6e 65 20 | 29 20 0d 0a 09 7b 0d 0a |!= None |) ...{..|
|00005a00| 09 09 4c 65 61 64 65 72 | 5b 4e 65 77 42 6f 74 2e |..Leader|[NewBot.|
|00005a10| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00005a20| 6e 49 6e 66 6f 2e 54 65 | 61 6d 5d 20 3d 20 4c 3b |nInfo.Te|am] = L;|
|00005a30| 0d 0a 09 09 4e 75 6d 53 | 75 70 70 6f 72 74 69 6e |....NumS|upportin|
|00005a40| 67 50 6c 61 79 65 72 2b | 2b 3b 0d 0a 09 09 4e 65 |gPlayer+|+;....Ne|
|00005a50| 77 42 6f 74 2e 53 65 74 | 4f 72 64 65 72 73 28 27 |wBot.Set|Orders('|
|00005a60| 46 6f 6c 6c 6f 77 27 2c | 4c 2c 20 74 72 75 65 29 |Follow',|L, true)|
|00005a70| 3b 0d 0a 09 09 72 65 74 | 75 72 6e 3b 0d 0a 09 7d |;....ret|urn;...}|
|00005a80| 0d 0a 0d 0a 09 69 66 20 | 28 20 4e 65 77 42 6f 74 |.....if |( NewBot|
|00005a90| 2e 4f 72 64 65 72 73 20 | 3d 3d 20 27 44 65 66 65 |.Orders |== 'Defe|
|00005aa0| 6e 64 27 20 29 0d 0a 09 | 09 72 65 74 75 72 6e 3b |nd' )...|.return;|
|00005ab0| 0d 0a 0d 0a 09 2f 2f 20 | 69 66 20 6e 6f 20 70 6c |.....// |if no pl|
|00005ac0| 61 79 65 72 20 74 6f 20 | 73 75 70 70 6f 72 74 2c |ayer to |support,|
|00005ad0| 20 73 75 70 70 6f 72 74 | 20 61 20 62 6f 74 0d 0a | support| a bot..|
|00005ae0| 09 69 66 20 28 20 4c 65 | 61 64 65 72 5b 4e 65 77 |.if ( Le|ader[New|
|00005af0| 42 6f 74 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |Bot.Play|erReplic|
|00005b00| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 5d 20 |ationInf|o.Team] |
|00005b10| 3d 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 7b 0d 0a 09 |== None |)...{...|
|00005b20| 09 2f 2f 20 70 69 63 6b | 20 4e 65 77 42 6f 74 20 |.// pick| NewBot |
|00005b30| 61 73 20 6c 65 61 64 65 | 72 0d 0a 09 09 4c 65 61 |as leade|r....Lea|
|00005b40| 64 65 72 5b 4e 65 77 42 | 6f 74 2e 50 6c 61 79 65 |der[NewB|ot.Playe|
|00005b50| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00005b60| 2e 54 65 61 6d 5d 20 3d | 20 4e 65 77 42 6f 74 3b |.Team] =| NewBot;|
|00005b70| 0d 0a 09 09 4e 65 77 42 | 6f 74 2e 62 4c 65 61 64 |....NewB|ot.bLead|
|00005b80| 69 6e 67 20 3d 20 74 72 | 75 65 3b 0d 0a 09 09 72 |ing = tr|ue;....r|
|00005b90| 65 74 75 72 6e 3b 0d 0a | 09 7d 0d 0a 09 09 0d 0a |eturn;..|.}......|
|00005ba0| 09 4e 65 77 42 6f 74 2e | 53 65 74 4f 72 64 65 72 |.NewBot.|SetOrder|
|00005bb0| 73 28 27 46 6f 6c 6c 6f | 77 27 2c 4c 65 61 64 65 |s('Follo|w',Leade|
|00005bc0| 72 5b 4e 65 77 42 6f 74 | 2e 50 6c 61 79 65 72 52 |r[NewBot|.PlayerR|
|00005bd0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|00005be0| 65 61 6d 5d 2c 74 72 75 | 65 29 3b 0d 0a 7d 09 0d |eam],tru|e);..}..|
|00005bf0| 0a 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 62 6f |.....fun|ction bo|
|00005c00| 6f 6c 20 49 73 4f 6e 54 | 65 61 6d 28 50 61 77 6e |ol IsOnT|eam(Pawn|
|00005c10| 20 4f 74 68 65 72 2c 20 | 69 6e 74 20 54 65 61 6d | Other, |int Team|
|00005c20| 4e 75 6d 29 0d 0a 7b 0d | 0a 09 69 66 20 28 20 28 |Num)..{.|..if ( (|
|00005c30| 4f 74 68 65 72 20 3d 3d | 20 4e 6f 6e 65 29 20 7c |Other ==| None) ||
|00005c40| 7c 20 28 4f 74 68 65 72 | 2e 50 6c 61 79 65 72 52 || (Other|.PlayerR|
|00005c50| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 20 3d |eplicati|onInfo =|
|00005c60| 3d 20 4e 6f 6e 65 29 20 | 29 0d 0a 09 09 72 65 74 |= None) |)....ret|
|00005c70| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 09 69 66 20 |urn fals|e;...if |
|00005c80| 28 20 44 65 66 65 6e 64 | 65 72 20 3d 3d 20 54 65 |( Defend|er == Te|
|00005c90| 61 6d 73 5b 4f 74 68 65 | 72 2e 50 6c 61 79 65 72 |ams[Othe|r.Player|
|00005ca0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00005cb0| 54 65 61 6d 5d 20 29 0d | 0a 09 09 72 65 74 75 72 |Team] ).|...retur|
|00005cc0| 6e 20 28 54 65 61 6d 4e | 75 6d 20 3d 3d 20 30 29 |n (TeamN|um == 0)|
|00005cd0| 3b 0d 0a 0d 0a 09 72 65 | 74 75 72 6e 20 28 54 65 |;.....re|turn (Te|
|00005ce0| 61 6d 4e 75 6d 20 21 3d | 20 30 29 3b 0d 0a 7d 09 |amNum !=| 0);..}.|
|00005cf0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 50 69 63 |....func|tion Pic|
|00005d00| 6b 41 6d 62 75 73 68 53 | 70 6f 74 46 6f 72 28 42 |kAmbushS|potFor(B|
|00005d10| 6f 74 20 61 42 6f 74 29 | 0d 0a 7b 0d 0a 09 6c 6f |ot aBot)|..{...lo|
|00005d20| 63 61 6c 20 4e 61 76 69 | 67 61 74 69 6f 6e 50 6f |cal Navi|gationPo|
|00005d30| 69 6e 74 20 4e 3b 0d 0a | 09 6c 6f 63 61 6c 20 62 |int N;..|.local b|
|00005d40| 6f 6f 6c 20 62 46 72 65 | 65 44 65 66 65 6e 73 65 |ool bFre|eDefense|
|00005d50| 2c 20 62 46 6f 72 74 44 | 65 66 65 6e 73 65 2c 20 |, bFortD|efense, |
|00005d60| 62 46 6f 75 6e 64 44 65 | 66 65 6e 73 65 3b 0d 0a |bFoundDe|fense;..|
|00005d70| 0d 0a 09 66 6f 72 20 28 | 20 4e 3d 4c 65 76 65 6c |...for (| N=Level|
|00005d80| 2e 4e 61 76 69 67 61 74 | 69 6f 6e 50 6f 69 6e 74 |.Navigat|ionPoint|
|00005d90| 4c 69 73 74 3b 20 4e 21 | 3d 4e 6f 6e 65 3b 20 4e |List; N!|=None; N|
|00005da0| 3d 4e 2e 4e 65 78 74 4e | 61 76 69 67 61 74 69 6f |=N.NextN|avigatio|
|00005db0| 6e 50 6f 69 6e 74 20 29 | 0d 0a 09 09 69 66 20 28 |nPoint )|....if (|
|00005dc0| 20 4e 2e 49 73 41 28 27 | 44 65 66 65 6e 73 65 70 | N.IsA('|Defensep|
|00005dd0| 6f 69 6e 74 27 29 20 26 | 26 20 21 4e 2e 74 61 6b |oint') &|& !N.tak|
|00005de0| 65 6e 20 26 26 20 49 73 | 4f 6e 54 65 61 6d 28 61 |en && Is|OnTeam(a|
|00005df0| 42 6f 74 2c 44 65 66 65 | 6e 73 65 50 6f 69 6e 74 |Bot,Defe|nsePoint|
|00005e00| 28 4e 29 2e 74 65 61 6d | 29 20 29 0d 0a 09 09 7b |(N).team|) )....{|
|00005e10| 0d 0a 09 09 09 69 66 20 | 28 20 61 42 6f 74 2e 4f |.....if |( aBot.O|
|00005e20| 72 64 65 72 4f 62 6a 65 | 63 74 20 21 3d 20 4e 6f |rderObje|ct != No|
|00005e30| 6e 65 20 29 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |ne )....|.{......|
|00005e40| 62 46 72 65 65 44 65 66 | 65 6e 73 65 20 3d 20 28 |bFreeDef|ense = (|
|00005e50| 44 65 66 65 6e 73 65 50 | 6f 69 6e 74 28 4e 29 2e |DefenseP|oint(N).|
|00005e60| 46 6f 72 74 54 61 67 20 | 3d 3d 20 27 27 29 3b 0d |FortTag |== '');.|
|00005e70| 0a 09 09 09 09 62 46 6f | 72 74 44 65 66 65 6e 73 |.....bFo|rtDefens|
|00005e80| 65 20 3d 20 21 62 46 72 | 65 65 44 65 66 65 6e 73 |e = !bFr|eeDefens|
|00005e90| 65 20 26 26 20 28 44 65 | 66 65 6e 73 65 50 6f 69 |e && (De|fensePoi|
|00005ea0| 6e 74 28 4e 29 2e 46 6f | 72 74 54 61 67 20 3d 3d |nt(N).Fo|rtTag ==|
|00005eb0| 20 61 42 6f 74 2e 4f 72 | 64 65 72 4f 62 6a 65 63 | aBot.Or|derObjec|
|00005ec0| 74 2e 54 61 67 29 3b 0d | 0a 09 09 09 09 69 66 20 |t.Tag);.|.....if |
|00005ed0| 28 20 21 62 46 6f 75 6e | 64 44 65 66 65 6e 73 65 |( !bFoun|dDefense|
|00005ee0| 20 29 0d 0a 09 09 09 09 | 7b 0d 0a 09 09 09 09 09 | )......|{.......|
|00005ef0| 69 66 20 28 20 62 46 6f | 72 74 44 65 66 65 6e 73 |if ( bFo|rtDefens|
|00005f00| 65 20 29 0d 0a 09 09 09 | 09 09 7b 0d 0a 09 09 09 |e ).....|..{.....|
|00005f10| 09 09 09 62 46 6f 75 6e | 64 44 65 66 65 6e 73 65 |...bFoun|dDefense|
|00005f20| 20 3d 20 74 72 75 65 3b | 0d 0a 09 09 09 09 09 09 | = true;|........|
|00005f30| 61 42 6f 74 2e 41 6d 62 | 75 73 68 53 70 6f 74 20 |aBot.Amb|ushSpot |
|00005f40| 3d 20 41 6d 62 75 73 68 | 50 6f 69 6e 74 28 4e 29 |= Ambush|Point(N)|
|00005f50| 3b 0d 0a 09 09 09 09 09 | 7d 0d 0a 09 09 09 09 09 |;.......|}.......|
|00005f60| 65 6c 73 65 20 69 66 20 | 28 20 62 46 72 65 65 44 |else if |( bFreeD|
|00005f70| 65 66 65 6e 73 65 20 26 | 26 20 28 28 61 42 6f 74 |efense &|& ((aBot|
|00005f80| 2e 41 6d 62 75 73 68 53 | 70 6f 74 20 3d 3d 20 4e |.AmbushS|pot == N|
|00005f90| 6f 6e 65 29 20 7c 7c 20 | 28 46 52 61 6e 64 28 29 |one) || |(FRand()|
|00005fa0| 20 3c 20 30 2e 34 29 29 | 20 29 0d 0a 09 09 09 09 | < 0.4))| )......|
|00005fb0| 09 09 61 42 6f 74 2e 41 | 6d 62 75 73 68 53 70 6f |..aBot.A|mbushSpo|
|00005fc0| 74 20 3d 20 41 6d 62 75 | 73 68 50 6f 69 6e 74 28 |t = Ambu|shPoint(|
|00005fd0| 4e 29 3b 0d 0a 09 09 09 | 09 7d 0d 0a 09 09 09 09 |N);.....|.}......|
|00005fe0| 65 6c 73 65 20 69 66 20 | 28 20 62 46 6f 72 74 44 |else if |( bFortD|
|00005ff0| 65 66 65 6e 73 65 20 29 | 0d 0a 09 09 09 09 7b 0d |efense )|......{.|
|00006000| 0a 09 09 09 09 09 69 66 | 20 28 20 44 65 66 65 6e |......if| ( Defen|
|00006010| 73 65 50 6f 69 6e 74 28 | 4e 29 2e 70 72 69 6f 72 |sePoint(|N).prior|
|00006020| 69 74 79 20 3e 20 44 65 | 66 65 6e 73 65 50 6f 69 |ity > De|fensePoi|
|00006030| 6e 74 28 61 42 6f 74 2e | 41 6d 62 75 73 68 73 70 |nt(aBot.|Ambushsp|
|00006040| 6f 74 29 2e 70 72 69 6f | 72 69 74 79 20 29 0d 0a |ot).prio|rity )..|
|00006050| 09 09 09 09 09 09 61 42 | 6f 74 2e 41 6d 62 75 73 |......aB|ot.Ambus|
|00006060| 68 73 70 6f 74 20 3d 20 | 41 6d 62 75 73 68 70 6f |hspot = |Ambushpo|
|00006070| 69 6e 74 28 4e 29 3b 0d | 0a 09 09 09 09 09 65 6c |int(N);.|......el|
|00006080| 73 65 20 69 66 20 28 20 | 28 44 65 66 65 6e 73 65 |se if ( |(Defense|
|00006090| 50 6f 69 6e 74 28 4e 29 | 2e 70 72 69 6f 72 69 74 |Point(N)|.priorit|
|000060a0| 79 20 3d 3d 20 44 65 66 | 65 6e 73 65 50 6f 69 6e |y == Def|ensePoin|
|000060b0| 74 28 61 42 6f 74 2e 41 | 6d 62 75 73 68 73 70 6f |t(aBot.A|mbushspo|
|000060c0| 74 29 2e 70 72 69 6f 72 | 69 74 79 29 0d 0a 09 09 |t).prior|ity)....|
|000060d0| 09 09 09 09 26 26 20 28 | 46 52 61 6e 64 28 29 20 |....&& (|FRand() |
|000060e0| 3c 20 30 2e 34 29 20 29 | 20 0d 0a 09 09 09 09 09 |< 0.4) )| .......|
|000060f0| 09 61 42 6f 74 2e 41 6d | 62 75 73 68 73 70 6f 74 |.aBot.Am|bushspot|
|00006100| 20 3d 20 41 6d 62 75 73 | 68 70 6f 69 6e 74 28 4e | = Ambus|hpoint(N|
|00006110| 29 3b 0d 0a 09 09 09 09 | 7d 09 09 0d 0a 09 09 09 |);......|}.......|
|00006120| 7d 0d 0a 09 09 09 65 6c | 73 65 20 69 66 20 28 20 |}.....el|se if ( |
|00006130| 28 61 42 6f 74 2e 41 6d | 62 75 73 68 53 70 6f 74 |(aBot.Am|bushSpot|
|00006140| 20 3d 3d 20 4e 6f 6e 65 | 29 0d 0a 09 09 09 09 09 | == None|).......|
|00006150| 7c 7c 20 28 56 53 69 7a | 65 28 61 42 6f 74 2e 4c ||| (VSiz|e(aBot.L|
|00006160| 6f 63 61 74 69 6f 6e 20 | 2d 20 61 42 6f 74 2e 41 |ocation |- aBot.A|
|00006170| 6d 62 75 73 68 73 70 6f | 74 2e 4c 6f 63 61 74 69 |mbushspo|t.Locati|
|00006180| 6f 6e 29 0d 0a 09 09 09 | 09 09 09 3e 20 56 53 69 |on).....|...> VSi|
|00006190| 7a 65 28 61 42 6f 74 2e | 4c 6f 63 61 74 69 6f 6e |ze(aBot.|Location|
|000061a0| 20 2d 20 4e 2e 4c 6f 63 | 61 74 69 6f 6e 29 29 20 | - N.Loc|ation)) |
|000061b0| 29 0d 0a 09 09 09 09 61 | 42 6f 74 2e 41 6d 62 75 |)......a|Bot.Ambu|
|000061c0| 73 68 73 70 6f 74 20 3d | 20 41 6d 62 75 73 68 70 |shspot =| Ambushp|
|000061d0| 6f 69 6e 74 28 4e 29 3b | 0d 0a 09 09 7d 0d 0a 7d |oint(N);|....}..}|
|000061e0| 0d 0a 0d 0a 2f 2f 20 72 | 65 74 75 72 6e 20 74 72 |....// r|eturn tr|
|000061f0| 75 65 20 77 68 65 6e 20 | 6c 65 61 64 65 72 20 68 |ue when |leader h|
|00006200| 61 73 20 64 69 65 64 2f | 72 65 73 70 61 77 6e 65 |as died/|respawne|
|00006210| 64 2c 20 61 6e 64 20 62 | 6f 74 73 20 73 68 6f 75 |d, and b|ots shou|
|00006220| 6c 64 20 77 61 69 74 20 | 66 6f 72 20 68 69 6d 20 |ld wait |for him |
|00006230| 74 6f 20 73 68 6f 77 20 | 62 61 63 6b 20 75 70 0d |to show |back up.|
|00006240| 0a 2f 2f 20 62 65 66 6f | 72 65 20 61 64 76 61 6e |.// befo|re advan|
|00006250| 63 69 6e 67 20 2d 20 61 | 6e 64 20 6e 6f 74 20 66 |cing - a|nd not f|
|00006260| 61 6c 6c 62 61 63 6b 20 | 74 6f 20 74 68 65 20 73 |allback |to the s|
|00006270| 74 61 72 74 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 62 |tart..fu|nction b|
|00006280| 6f 6f 6c 20 57 61 69 74 | 46 6f 72 50 6f 69 6e 74 |ool Wait|ForPoint|
|00006290| 28 62 6f 74 20 61 42 6f | 74 29 0d 0a 7b 0d 0a 09 |(bot aBo|t)..{...|
|000062a0| 69 66 20 28 20 21 61 42 | 6f 74 2e 52 65 67 69 6f |if ( !aB|ot.Regio|
|000062b0| 6e 2e 5a 6f 6e 65 2e 62 | 57 61 74 65 72 5a 6f 6e |n.Zone.b|WaterZon|
|000062c0| 65 20 26 26 20 62 46 6f | 72 74 44 6f 77 6e 20 26 |e && bFo|rtDown &|
|000062d0| 26 20 28 4c 65 76 65 6c | 2e 54 69 6d 65 53 65 63 |& (Level|.TimeSec|
|000062e0| 6f 6e 64 73 20 2d 20 61 | 42 6f 74 2e 50 6f 69 6e |onds - a|Bot.Poin|
|000062f0| 74 44 69 65 64 20 3c 20 | 31 32 29 20 26 26 20 61 |tDied < |12) && a|
|00006300| 42 6f 74 2e 4f 72 64 65 | 72 4f 62 6a 65 63 74 2e |Bot.Orde|rObject.|
|00006310| 49 73 41 28 27 50 6c 61 | 79 65 72 50 61 77 6e 27 |IsA('Pla|yerPawn'|
|00006320| 29 20 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 20 |) )...{.|...if ( |
|00006330| 28 50 61 77 6e 28 61 42 | 6f 74 2e 4f 72 64 65 72 |(Pawn(aB|ot.Order|
|00006340| 4f 62 6a 65 63 74 29 2e | 48 65 61 6c 74 68 20 3e |Object).|Health >|
|00006350| 20 30 29 20 26 26 20 28 | 56 53 69 7a 65 28 61 42 | 0) && (|VSize(aB|
|00006360| 6f 74 2e 4c 6f 63 61 74 | 69 6f 6e 20 2d 20 61 42 |ot.Locat|ion - aB|
|00006370| 6f 74 2e 4f 72 64 65 72 | 4f 62 6a 65 63 74 2e 4c |ot.Order|Object.L|
|00006380| 6f 63 61 74 69 6f 6e 29 | 20 3c 20 31 32 30 30 29 |ocation)| < 1200)|
|00006390| 20 26 26 20 61 42 6f 74 | 2e 4c 69 6e 65 4f 66 53 | && aBot|.LineOfS|
|000063a0| 69 67 68 74 54 6f 28 61 | 42 6f 74 2e 4f 72 64 65 |ightTo(a|Bot.Orde|
|000063b0| 72 4f 62 6a 65 63 74 29 | 20 29 0d 0a 09 09 09 61 |rObject)| ).....a|
|000063c0| 42 6f 74 2e 50 6f 69 6e | 74 44 69 65 64 20 3d 20 |Bot.Poin|tDied = |
|000063d0| 2d 31 30 30 30 3b 0d 0a | 09 09 72 65 74 75 72 6e |-1000;..|..return|
|000063e0| 20 28 4c 65 76 65 6c 2e | 54 69 6d 65 53 65 63 6f | (Level.|TimeSeco|
|000063f0| 6e 64 73 20 2d 20 61 42 | 6f 74 2e 50 6f 69 6e 74 |nds - aB|ot.Point|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.